Type Method

appearanceForTraitCollection:whenContainedIn:

Returns the appearance proxy for the receiver in a given containment hierarchy that has the passed trait collection.

Required.

Declaration

+ (instancetype)appearanceForTraitCollection:(UITraitCollection *)trait whenContainedIn:(Class<UIAppearanceContainer>)ContainerClass, ...;

Parameters

trait

The trait collection used for matching.

ContainerClass,

A nil-terminated list of appearance container classes.

Return Value

The appearance proxy for the receiver in a given containment hierarchy.

Discussion

This method throws an exception for any item in the var-args list that is not a Class object that conforms to the UIAppearanceContainer protocol.

See Also

Appearance Methods

appearance

Returns the appearance proxy for the receiver.

Required.

appearanceForTraitCollection:

Returns the appearance proxy for the receiver that has the passed trait collection.

Required.

appearanceWhenContainedInInstancesOfClasses:

Returns the appearance proxies when the object is contained by one of the specified classes.

Required.

appearanceForTraitCollection:whenContainedInInstancesOfClasses:

Returns the appearance proxy for an object that is contained by one of the specified classes and has the specified trait collection.

Required.

appearanceWhenContainedIn:

Returns the appearance proxy for the receiver in a given containment hierarchy.

Required.

Deprecated