Contents

init(labelWithString:)

Initializes a text field for use as a static label that uses the system default font, doesn’t wrap, and doesn’t have selectable text.

Declaration

convenience init(labelWithString stringValue: String)

Parameters

  • stringValue:

    A string to use as the content of the label.

Return Value

A text field that displays the specified string as a static label.

See Also

Creating Text Fields