How to resize a UIImageView to fit the underlying image without moving it?
Posted
by Steve N
on Stack Overflow
See other posts from Stack Overflow
or by Steve N
Published on 2010-06-08T18:10:05Z
Indexed on
2010/06/08
18:12 UTC
Read the original article
Hit count: 328
I have a UIImageView whose frame, set before the image is loaded, is always too large for the image, so when I try to round the corners, for example, nothing happens.
How can I resize the frame so it's the same size as the underlying image, while ensuring that the center point of the UIImageView does not change?
© Stack Overflow or respective owner