Hi,
Is there a way to proportionally resize the image in the UIImageView? UIImageView automatically stretches the image to fill its frame, but I want it streteched proportionally (may have black bars on either top/bottom or left/right).
The only idea I had was to change the UIImageView's frame, but this is not desirable as keeping the width fixed is important (there will be several UIImageViews laid out next to eachother and calculations will be done based on the widths, like the page control sample code).
Is there a way to proportionally resize the image in the UIImageView? UIImageView automatically stretches the image to fill its frame, but I want it streteched proportionally (may have black bars on either top/bottom or left/right).
The only idea I had was to change the UIImageView's frame, but this is not desirable as keeping the width fixed is important (there will be several UIImageViews laid out next to eachother and calculations will be done based on the widths, like the page control sample code).