Cropping center square of UIImage
I think here would be the perfect solution! It is NOT good idea to crop image basis on the toSize‘s size. It will look weird when the image resolution (size) is very large. Following code will crop the image as per the toSize‘s ratio. Improved from @BlackRider‘s answer. – (UIImage *)imageByCroppingImage:(UIImage *)image toSize:(CGSize)size { double … Read more