How can I detect device orientation going back and forth through tabs and views?
Posted
by JoshD
on Stack Overflow
See other posts from Stack Overflow
or by JoshD
Published on 2010-03-31T18:40:28Z
Indexed on
2010/03/31
18:43 UTC
Read the original article
Hit count: 320
My application goes back and forth between Portrait and Landscape. I have all of my content(labels, uiimageviews, uilabels) lined up to relocate for both orientations. However, the only change when the device is actually rotated. When I cycle between tabs after it has been rotated it just shows up autosized and not the way I have it setup when the user rotates it.
How can I detect the orientation of the device and display the view to reflect the orientation when the taps different tabs?
© Stack Overflow or respective owner