开发者

UIImageview not shwoing properly due to navigationBar

I am facing the issues with UIImageView in my application. Images are starched due to the navigation bar on top of the view. As soon as, I hi开发者_如何学Gode the navigation bar, the application shows poper sized images as provided in nid files.

Thank You.


Your imageView probably resizes itself when its superView's frame changes. If you want your image not being stretched, use another UIViewContentMode like :

myImageView.contentMode =  UIViewContentModeScaleAspectFit;

Or change your imageView resizingMask that it doesn't resizes itself.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜