UIView provides for the \"aspect fit\" content mode. However, I\'ve subclasses UIView and would like to draw a UIImage using drawInRect with an aspect fit. Is there any way
The following will let you determine the size to draw in. You specify the aspect ratio and the bounding size to fit into.
CGSizeAspectFit & CGSizeAspectFill