Skip to content

Instantly share code, notes, and snippets.

@jeffbailey
Created January 22, 2014 18:52
Show Gist options
  • Save jeffbailey/8564891 to your computer and use it in GitHub Desktop.
Save jeffbailey/8564891 to your computer and use it in GitHub Desktop.
Crop a UIImage
CGImageRef image = CGImageCreateWithImageInRect([orginalImage CGImage],cropRect);
UIImage *cropedImage = [UIImage imageWithCGImage:image];
CGImageRelease(image);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment