title: iPhone: removing objects from page
body: <p>I have a UIView which has a 'display' method I wrote.
  In the 'display' method, I have the following code:
  First, create a main view</p>
  
  <pre><code>UIView *contentView = ...
  </code></pre>
  
  <p>Second, create lots of objects, like this:</p>
  
  <pre><code>ObjectView* objectView = ... (ObjectView is also a UIView)
  </code></pre>
  
  <p>Third, add all these objects to the contentView, like this:</p>
  
  <pre><code>[contentView addSubview:objectView];
  </code></pre>
  
  <p>Finally, I add contentView to self.</p>
  
  <p>Initially, the 'display' method is called from 'initWithFrame', and it all displays as I want. I also have a view which when clicked also calls the 'display' method, this time it should display new content. The problem is that the new content displays over the original content, the original content is not removed.
  What am I doing wrong?
  Thanks!</p>