UIImage: Resize, then Crop
I needed the same thing – in my case, to pick the dimension that fits once scaled, and then crop each end to fit the rest to the width. (I’m working in landscape, so might not have noticed any deficiencies in portrait mode.) Here’s my code – it’s part of a categeory on UIImage. Target … Read more