Instance Property

adjustsFontForContentSizeCategory

A Boolean that indicates whether the object automatically updates its font when the device's content size category changes.

Required.

Declaration

@property(nonatomic) BOOL adjustsFontForContentSizeCategory;

Discussion

Set the value of this property to YES to allow the element to update its font when the size category changes. Set the value to NO to ignore the size category changes.

For this property to take effect, the element’s font must be vended one of the following ways:

Because fonts are immutable, any element that adjusts for an updated content size category does not modify the font itself. Instead, the element replaces the assigned font with a new instance based on the original settings.

If you set this property to YES, the element adjusts for a new content size category on a UIContentSizeCategoryDidChangeNotification.