Instance Property


The user interface style adopted by the view and all of its subviews.


@property(nonatomic) UIUserInterfaceStyle overrideUserInterfaceStyle;


Use this property to force the view to always adopt a light or dark interface style. The default value of this property is UIUserInterfaceStyleUnspecified, which causes the view to inherit the interface style from a parent view or view controller. If you assign a different value, the new style applies to the view and all of the subviews owned by the same view controller. (If the view hierarchy contains the root view of an embedded child view controller, the child view controller and its views do not inherit the interface style.) If the view is a UIWindow object, the new style applies to everything in the window, including the root view controller and all presented content.

See Also

Adjusting the User Interface


A semantic description of the view’s contents, used to determine whether the view should be flipped when switching between left-to-right and right-to-left layouts.


The user interface layout direction appropriate for arranging the immediate content of the view.

+ userInterfaceLayoutDirectionForSemanticContentAttribute:

Returns the user interface direction for the given semantic content attribute.

+ userInterfaceLayoutDirectionForSemanticContentAttribute:relativeToLayoutDirection:

Returns the layout direction implied by the specified semantic content attribute, relative to the specified layout direction.