开发者

Resizing image view in Portrait mode and landscape mode

开发者 https://www.devze.com 2023-03-09 21:24 出处:网络
Can anyone tell me about the way to resize 开发者_如何学Pythonmy image view to show images in both portrait and landscape mode .i want to show them full screen .Please help

Can anyone tell me about the way to resize 开发者_如何学Pythonmy image view to show images in both portrait and landscape mode .i want to show them full screen .Please help

Thanks, Christy


Use like

imageView.autoresizingMask = UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight;

and also set leftmargin ,right margin from above code


hey change the frame of the image view in the didOrientationChange method..Simple as that...!!

0

精彩评论

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