title: How to remove a subview (or all subviews of a view)
body: <p>I have a method in which I alloc and init an </p>
  
  <pre><code>UIView (`tabsClippedView = [[[UIView alloc] initWithFrame:tabsClippedFrame] autorelease];`).
  </code></pre>
  
  <p>This view has another view added to it </p>
  
  <pre><code>(`tabsView = [[[UIView alloc] initWithFrame:tabsFrame] autorelease];`).     
  </code></pre>
  
  <p>Then I initiate a couple of buttons</p>
  
  <pre><code>(e.g. `UIButton* btn = [[[UIButton alloc] initWithFrame:frame] autorelease];`)
  </code></pre>
  
  <p>and add them to the subview of the view.</p>
  
  <p>Now from time to time, I need to delete all the buttons and assign them again. Is the best way to delete the entire view or simply the subview to which I added the buttons?</p>
  
  <p>How would I need to do this (without memory leaking etc.)? <strong>Would a simple</strong></p>
  
  <pre><code>self.tabsView = nil;
  </code></pre>
  
  <p><strong>suffice to delete the view and all of its subviews (i.e. the buttons)?</strong></p>
  
  <p>Or would it better to delete the superview as well, to start entirely from scratch:</p>
  
  <pre><code>self.tabsClippedView = nil;
  </code></pre>