Instance Property

preferredContentSizeCategory

The font sizing option preferred by the user.

Declaration

@property(nonatomic, copy, readonly) UIContentSizeCategory preferredContentSizeCategory;

Discussion

With Dynamic Type, users can ask that apps display text using fonts that are larger or smaller than the normal font size defined by the system. For example, a user with a visual impairment might request a larger default font size to make it easier to read text. Use the value of this property to request a UIFont object that matches the user's requested size.

See Also

Retrieving Content Size Category Information

UIContentSizeCategory

Constants indicating the preferred size of your content.

UIContentSizeCategoryCompareToCategory

Compares two content size category values to determine whether they are equal or whether one is larger than the other.

UIContentSizeCategoryIsAccessibilityCategory

Returns a Boolean value indicating whether the content size category belongs to the group of accessibility-related sizes.