Type Method

labelNodeWithFontNamed:

Initializes a new label object.

Declaration

+ (instancetype)labelNodeWithFontNamed:(NSString *)fontName;

Parameters

fontName

The name of the font used by the label.

Return Value

An initialized label object.

See Also

Creating a Label

- initWithFontNamed:

Initializes a new label object with a specified font.

+ labelNodeWithText:

Initializes a new label object with a text string.

+ labelNodeWithAttributedText:

Initializes a new label object with an attributed text string.