ISOCountryConverter


@interface ISOCountryConverter : NSObject

ISOCountryConverter should be used to convert ISO 3166-1 alpha-3 into alpha-2 country codes and vice versa.

  • Use the following method to convert ISO 3166-1 alpha-3 into alpha-2 country code

    Declaration

    Objective-C

    + (NSString *)convertToAlpha2:(NSString *)alpha3;

    Swift

    class func convert(toAlpha2 alpha3: String!) -> String!

    Parameters

    alpha3

    ISO 3166-1 alpha-3 code

    Return Value

    ISO 3166-1 alpha-2 code

  • Use the following method to convert ISO 3166-1 alpha-2 into alpha-3 country code

    Declaration

    Objective-C

    + (NSString *)convertToAlpha3:(NSString *)alpha2;

    Swift

    class func convert(toAlpha3 alpha2: String!) -> String!

    Parameters

    alpha2

    ISO 3166-1 alpha-2 code

    Return Value

    ISO 3166-1 alpha-3 code