Type Method

labelNodeWithText:

Initializes a new label object with a text string.

Declaration

+ (instancetype)labelNodeWithText:(NSString *)text;

Parameters

text

The text to use to initialize the label node.

Return Value

An initialized label object.

Discussion

The label node’s font is set to Helvetica Neue Ultra Light, 32 point.

See Also

Creating a Label

- initWithFontNamed:

Initializes a new label object with a specified font.

+ labelNodeWithFontNamed:

Initializes a new label object.

+ labelNodeWithAttributedText:

Initializes a new label object with an attributed text string.