【发布时间】:2013-02-14 13:25:55
【问题描述】:
所以我正在尝试将图像从相机加载到图像视图中。我已经完成了,但是图像的纵横比发生了变化。
我尝试为 imageview 设置内容模式,但没有效果。 这是我的做法:
UIImage *picture=[UIImage imageWithData:slika];
imageview = UIViewContentModeScaleAspectFit;
[imageview setImage:picture forState:UIControlStateNormal];
有什么想法吗?
【问题讨论】:
标签: objective-c xcode uiimageview