简体   繁体   English

在纵向模式和横向模式下调整图像视图的大小

[英]Resizing image view in Portrait mode and landscape mode

Can anyone tell me about the way to resize my 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并从上面的代码中设置leftmargin,right margin

hey change the frame of the image view in the didOrientationChange method..Simple as that...!!嘿,在 didOrientationChange 方法中更改图像视图的框架……就这么简单……!!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM