czen_a
Last Updated: February 25, 2016
·
668
· novalagung
16162fed91387cc1cec055412db0022d

iOS - Crop an Image

CGRect cropRect  = CGRectMake(0, 0, 100, 100);
CGImageRef imageRef = CGImageCreateWithImageInRect([image CGImage], cropRect);
UIImage *croppedImage   = [UIImage imageWithCGImage:imageRef];
CGImageRelease(imageRef);
Say Thanks
Respond