GCCountry
public final class GCCountry: NSObject
The GCCountry class defines an object that contains the country code, calling code, and localized display name for a country.
-
The ISO 3166-1 alpha-2 code for the country.
Declaration
Swift
public let countryCode: String
-
The calling code for the country.
This value is automatically generated using the supplied country code.
Declaration
Swift
public let callingCode: String?
-
The localized display name for the country.
This value is automatically generated using the supplied country code and the current locale.
Declaration
Swift
@objc public let localizedDisplayName: String
-
Initializes and returns a newly allocated country.
Declaration
Swift
public init?(countryCode: String)
Parameters
countryCode
An ISO 3166-1 alpha-2 code representing a country.
Return Value
An initialized country containing a country code, calling code, and localized display name.