Instance Property

preferredUserInterfaceStyle

The preferred interface style for this view controller.

Declaration

@property(nonatomic, readonly) UIUserInterfaceStyle preferredUserInterfaceStyle;

Discussion

Use this property to apply a specific appearance in your tvOS app. The default value of this property is UIUserInterfaceStyleUnspecified, which causes your view controller to follow the system's current style. You can override this property to force the view controller to adopt a specific style.

See Also

Adjusting the Interface Style

overrideUserInterfaceStyle

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

childViewControllerForUserInterfaceStyle

The child view controller that supports the preferred user interface style.

- setNeedsUserInterfaceAppearanceUpdate

Notifies the view controller that a change occurred that might affect the preferred interface style.

UIUserInterfaceStyle

Constants indicating the interface style for the app.