These constants are mask bits for specifying a view controller’s supported interface orientations.
- iOS 6.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 returned these constants from the
supported method or when determining which orientations to support in your app’s view controllers.