Type Method

preferredFontForTextStyle:

Returns an instance of the font associated with the text style and scaled appropriately for the user's selected content size category.

Declaration

+ (UIFont *)preferredFontForTextStyle:(UIFontTextStyle)style;

Parameters

style

The text style for which to return a font. See "Text Styles” in UIFontDescriptor for recognized values.

Return Value

The font associated with the specified text style.

See Also

Creating Fonts

fontWithName:size:

Creates and returns a font object for the specified font name and size.

fontWithDescriptor:size:

Returns a font matching the given font descriptor.

fontWithSize:

Returns a font object that is the same as the receiver but which has the specified size instead.