Type Method

labelNodeWithAttributedText:

Initializes a new label object with an attributed text string.

Declaration

+ (instancetype)labelNodeWithAttributedText:(NSAttributedString *)attributedText;

Parameters

attributedText

The attributed string from which to initialize the label.

Return Value

A lable initialized from attributed text.

Discussion

See Also

Creating a Label

- initWithFontNamed:

Initializes a new label object with a specified font.

+ labelNodeWithFontNamed:

Initializes a new label object.

+ labelNodeWithText:

Initializes a new label object with a text string.