The orientation of the application's user interface in Apple OS.
There are four available positions
- UIInterfaceOrientationPortrait
- UIInterfaceOrientationPortraitUpsideDown
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
You use these constants in the statusBarOrientation property and the setStatusBarOrientation:animated: method. Notice that UIDeviceOrientationLandscapeRight
is assigned to UIInterfaceOrientationLandscapeLeft
and UIDeviceOrientationLandscapeLeft
is assigned to UIInterfaceOrientationLandscapeRight
; the reason for this is that rotating the device requires rotating the content in the opposite direction.