【发布时间】:2012-10-24 23:02:30
【问题描述】:
我有一个 UIImageView,其框架为 (0, 0, 568, 300),其中包含一个原生大小为 512x384 像素的 UIImage。 contentmode 设置为 Aspect fit。 如果用户双击视图,我会使用以下代码更改 UIImageView 的大小:
self.imageViewerViewController.imageView.frame = CGRectMake(0, -63, 568, 426);
结果是图像的右边缘变形,无法正确缩放到新尺寸。
附上一张黑白矩阵的图像,失真在右边。 似乎右列像素重复到视图的右边缘。
谁能帮忙?
【问题讨论】:
标签: iphone uiimageview scaling