Re: UIImageView Scaling
Steve Christensen <punster@...>
Setting only edge constraints (top/bottom/leaing/trailing) on the image view will not guarantee "consistent" size. Unlike UILabel, for example, an image view doesn't necessarily have an intrinsic size based on current content since it's designed to scale the image in several ways, independent of the size of the view. If your goal is to resize the image view to fit the image, perhaps with some limits such as image width less than the screen width, then I think your best bet is to create IBOutlets for the image view's width and height constraints and then adjust them based on your requirements whenever you set the image.
|
|