简体   繁体   中英

Automatically detect image when orientation change

When I change mode of view then uiview don't show same image in portrait mode which is landscape mode. so how implement it? I required same image view in both mode. if image1.jpg is in portrait mode then same image will shown in landscape mode when orientation change.

Example;

NOte: here i have done with View but u have to do with UIImageview;

select ur UIImageview in IB then see autoresizing

then set like below in the autoresizing arrow marks.note dim arrow and dark arrow marks

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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