Instance Method

initWithFontAttributes:

Initializes and returns a new font descriptor with the specified attributes.

Declaration

- (instancetype)initWithFontAttributes:(NSDictionary<UIFontDescriptorAttributeName, id> *)attributes;

Parameters

attributes

The attributes for the new font descriptor. If nil, the font descriptor’s attribute dictionary will be empty.

Return Value

The new font descriptor.

See Also