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.