Initializer

init(fontNamed:)

Initializes a new label object with a specified font.

Declaration

init(fontNamed fontName: String?)

Parameters

fontName

The name of the font used by the label.

Return Value

An initialized label object.

See Also

Creating a Label

init(text: String?)

Initializes a new label object with a text string.

init(attributedText: NSAttributedString?)

Initializes a new label object with an attributed text string.