【发布时间】:2014-07-16 05:16:23
【问题描述】:
我有一个 UIImage,我想根据 UIImageView 调整设备上显示的内容。
UIImage 是:
UIImage *image = // a PNG I have
// width = 1200
CGFloat width = image.size.width;
// height = 900
CGFloat height = image.size.height;
我有一个 UIImageView
UIImageView *iview = [[UIImageView alloc] initWithFrame:CGRectMake(0.0, 0.0, 675.0, 900.0)];
如何在不调整纵横比的情况下将我的 UIImage 放入 UIImageView?我希望 UIImage 的边缘被裁剪掉?
【问题讨论】:
-
你得到答案了吗?
标签: ios ios7 uiimageview uiimage