title: How do you crop an image in iOS
body: <p>I have a photo app where you can add stickers in one section.  When you're finished I want to save the image.  Here is the code that I have to do that.  </p>
  
  <pre><code>if(UIGraphicsBeginImageContextWithOptions != NULL)
  {
      UIGraphicsBeginImageContextWithOptions(self.view.frame.size, YES, 2.5);
  } else {
      UIGraphicsBeginImageContext(self.view.frame.size);
  }
  CGContextRef contextNew=UIGraphicsGetCurrentContext();
  
  [self.view.layer renderInContext:contextNew];
  
  UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
  
  UIGraphicsEndImageContext();
  </code></pre>
  
  <p>Now the image that gets saved is the full screen of the image, which is fine, but now I need to crop the image and I don't know how. You can see the image at the link below:
  <a href="http://dl.dropbox.com/u/19130454/Photo%202012-04-09%201%2036%2018%20PM.png">http://dl.dropbox.com/u/19130454/Photo%202012-04-09%201%2036%2018%20PM.png</a></p>
  
  <p>I need to crop:
  91px from the left and right
  220px from the bottom</p>
  
  <p>Any help would be greatly appreciated.  If I haven't explained things clearly, please let me know and I'll do my best to re-explain.</p>