initWithTraitCollection:
Creates a configuration state with the specified trait collection.
Declaration
- (instancetype) initWithTraitCollection:(UITraitCollection *) traitCollection;Parameters
- traitCollection:
The trait collection describing the user interface environment.
Discussion
Typically, you don’t create a configuration state yourself. To access the current configuration state for a content-unavailable view, read contentUnavailableConfigurationState. View controller subclasses can override that property to customize the configuration state returned by the system.