Contents

UIInterfaceOrientation

Constants that specify the orientation of the app’s user interface.

Declaration

enum UIInterfaceOrientation

Overview

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

Orientation Checks

Initializers

See Also

Managing interface geometry