Created
May 6, 2016 06:07
-
-
Save zld/4a2a07a6812bccf70372e5f2d0eae037 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CGImageRef imageRef = CGImageCreateWithImageInRect([image CGImage], rect); | |
UIImage *img = [UIImage imageWithCGImage:imageRef]; | |
CGImageRelease(imageRef); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment