UIInterfaceOrientation
Constants that specify the orientation of the app’s user interface.
Declaration
enum UIInterfaceOrientationOverview
Starting in iOS 8, you should employ the UITraitCollection and UITraitEnvironment APIs, and size class properties as used in those APIs, instead of using UIInterfaceOrientation constants or otherwise writing your app in terms of interface orientation.
In earlier versions of iOS, you used these constants in the statusBarOrientation property and the setStatusBarOrientation(_:animated:) method.
Topics
Orientations
UIInterfaceOrientation.unknownUIInterfaceOrientation.portraitUIInterfaceOrientation.portraitUpsideDownUIInterfaceOrientation.landscapeLeftUIInterfaceOrientation.landscapeRight