title: Remove from superview
body: <p>Just a small question i'm really having a lot of problems with</p>
  
  <p>Basically, what I'm doing is making a view every time I hit a button which works fine.
  When I want to remove all the images I made when I hit the remove from superview it just removes the last one on the stack.
  Is there a way i can get rid of all the images I made?</p>
  
  <p>Here is the code</p>
  
  <p>This puts the picture on the screen</p>
  
  <pre><code>- (IBAction)pushBn:(id)sender {
  
  
      ZeldaView *newZelda = [[ZeldaView alloc]initWithNibName:@"ZeldaView" bundle:nil];
  
      theZeldaView=newZelda;
      [self.view insertSubview:theZeldaView.view atIndex:1];
  
  }
  </code></pre>
  
  <p>this removes it when i touch it</p>
  
  <pre><code>-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
  
  
      UITouch *touch =[touches anyObject];
      CGPoint location=[touch locationInView:theZeldaView.view];
  
      if (CGRectContainsPoint(theZeldaView.theImage.frame, location)) {
  
          [theZeldaView.view removeFromSuperview];
  
      }
  
  }
  </code></pre>