I have imageView with some frame
imageView.frame = CGRectMake(0,0, 100, 100);
imageView.contentMode = UIViewContentModeScaleAspectFit;
imageView.image = myImage;
The question is :
Is there any property or method in imageview to know the result size of the image after it's resizing (something like this : imageView.image.size)
(or should i calculate it myself using image size before and imageview frame)?
无法查询缩放图像的大小,您必须使用图像大小和大小限制自行计算。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.