title: iOS equivalent to View.GONE
body: <p>Is there an iOS equivalent to the Android View.GONE?  </p>
  
  <p>In Android, setting a view to GONE will make it invisible and will ensure that the view does not take up any space in the layout.  I know with iOS, you can set a view to hidden with  </p>
  
  <pre><code>[viewName setHidden:true];
  </code></pre>
  
  <p>but the view still takes up space in the layout, and I think it would be inefficient to completely remove the view and recreate it later.</p>
  
  <p>(note: I've seen this post: <a href="https://stackoverflow.com/questions/17869268/ios-equivalent-for-android-view-gone-visibility-mode">iOS equivalent for Android View.GONE visibility mode</a> but there is no accepted answer, and setting the height to 0 did not work for me, as the subsequent views on the page did not shift after my view was removed)</p>