开发者

Automatically detect image when orientation change

开发者 https://www.devze.com 2023-03-17 01:34 出处:网络
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

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

Automatically detect image when orientation change

0

精彩评论

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