title: How to remove UIimageView from Superview
body: <p>In my application I am adding a <code>UIimage</code> on every button click. As user can add that image number of times he clicked button, I have attached a tag "count1" with that button, and count increases on every click. Thus i can differentiate every image with its tag.</p>
  
  <p>Now i want to remove all those images, on another button click.</p>
  
  <p>I tried to remove those images through the following piece of code</p>
  
  <pre><code>for (int i=1; i&lt;=count1; i++) 
      {
          UIImageView *imgRemove;
          [[imgRemove viewWithTag:i] removeFromSuperview];
  
      }
  </code></pre>
  
  <p>but my application is crashing when I press the button.</p>
  
  <p>please help...</p>