How to get country name from iPhone locale settings

    NSLocale *locale = [NSLocale currentLocale];
    NSString *countryCode = [locale objectForKey: NSLocaleCountryCode];
   
    NSString *countryName = [locale displayNameForKey: NSLocaleCountryCode
                                                                             value: countryCode]];

Blogged with the Flock Browser

3 Responses to “How to get country name from iPhone locale settings”

  1. Shawn Arney Says:

    Thanks for the sample code. Very straightforward. Much appreciated :)

  2. Tarun shrarma Says:

    Thanks

    Easy and nice code.


Leave a Reply