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

5 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.

  3. Mike Says:

    Thank you, this was very helpful!

  4. Bart Says:

    Thanks!! LES IS MORE ;) in this case, it is very useful!


Leave a Reply