两行代码而已
CGRect cutRect = CGRectMake(originImage.size.width/2, originImage.size.height/2, originImage.size.width/2, originImage.size.height/2);
UIImage *cutImage = [UIImage imageWithCGImage:CGImageCreateWithImageInRect([originImage CGImage], cutRect)];
本文转自 卓行天下 51CTO博客,原文链接:http://blog.51cto.com/9951038/1772571,如需转载请自行联系原作者