Type Method

localizedString(forLabel:)

Returns a localized string for the specified label.

Declaration

class func localizedString(forLabel label: String) -> String

Parameters

label

The label to be localized.

Return Value

Returns a localized string for the label.

Discussion

All predefined label constants are localized and this method returns their localized strings. A custom label will be returned as is, so this method can be used to convert all labels for display.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software