Instance Method


Sets the label text to the specified string.


- (void)setText:(NSString *)text;



The text to be displayed in the label. Specifying nil clears the current text from the label.


This method changes the string displayed by the label to the new value. When using this method to set the text, the default font and styling information for the text is derived from the storyboard file. You can change the default text color using the setTextColor: method.

Changing the text of the label causes the label to resize itself to accommodate the new string. If the string is too large to fit the available space, WatchKit truncates the text.

See Also

Setting the Label Text

- setTextColor:

Sets the color to apply to plain text strings.

- setAttributedText:

Sets the label text to the specified attributed string.