Type Method

localizedString(forKey:)

Returns a string containing the localized contact property name.

Declaration

class func localizedString(forKey key: String) -> String

Parameters

key

A string containing the contact property key.

Return Value

A localized string containing the contact property name.

Discussion

This method returns a localized string for a contact property key. For example, the value of a Canadian CNContactPostalAddressesKey field would be “Postal Code”, while the value of a French one would be “Code Postal”.

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