I am taking a photo in xcode using a custom camera. Instead of the image being the normal size, I would like to crop it to a square. I have some code that I think should work but instead of cropping, it is squishing the image. What is going wrong? Thanks in advance!
Here is the code I am using to crop the image:
self.thumbImage = [self.photoImage resizedImageWithContentMode:UIViewContentModeScaleAspectFit
bounds:CGSizeMake(320.0f, 320.0f)
interpolationQuality:kCGInterpolationHigh];