ram
ram

Reputation: 1193

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.

Upvotes: 0

Views: 176

Answers (1)

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

enter image description here

Upvotes: 1

Related Questions