The orientation of the app's user interface.
- iOS 2.0+
Starting in iOS 8, you should employ the
UITrait APIs, and size class properties as used in those APIs, instead of using
UIInterface constants or otherwise writing your app in terms of interface orientation.
In earlier versions of iOS, you used these constants in the
status property and the
set method. Notice that
UIDeviceis assigned to
UIDevice is assigned to
UIInterface; the reason for this is that rotating the device requires rotating the content in the opposite direction.