UIMutableTraits
A mutable container of traits.
Declaration
@protocol UIMutableTraits <NSObject>Mentioned in
Overview
The UIMutableTraits protocol provides read-write access to get and set trait values on an underlying container. UIKit uses this protocol to facilitate working with instances of UITraitCollection, which are immutable and read-only. The UITraitCollection initializer traitCollectionWithTraits: uses an instance of UIMutableTraits, which enables you to set a batch of trait values in one method call. UITraitOverrides conforms to UIMutableTraits, making it easy to set trait overrides on trait environments such as views and view controllers.
Topics
Getting and setting trait values
accessibilityContrastactiveAppearancedisplayGamutdisplayScaleforceTouchCapabilityhorizontalSizeClassimageDynamicRangelayoutDirectionlegibilityWeightlistEnvironmentpreferredContentSizeCategoryresolvesNaturalAlignmentWithBaseWritingDirectionsceneCaptureStatesplitViewControllerLayoutEnvironmenttabAccessoryEnvironmenttoolbarItemPresentationSizetypesettingLanguageuserInterfaceIdiomuserInterfaceLeveluserInterfaceStyleverticalSizeClass
Getting and setting trait data
objectForTrait:setObject:forTrait:UIObjectTraitvalueForCGFloatTrait:setCGFloatValue:forTrait:UICGFloatTraitvalueForNSIntegerTrait:setNSIntegerValue:forTrait:UINSIntegerTrait