title: How to delete an imageview through code in xcode
body: <p>My goal is to delete an imageview when it reaches the side of the screen. It is supposed to be a bullet and when its x value reaches a certain value it gets deleted. 
  Here is the code for the sensor but once it reaches 120 I want it to be deleted:</p>
  
  <pre><code>CGRect frame = Image.frame;
  if (frame.origin.x&gt;120) {
     NSLog(@"delete");
  }
  </code></pre>