To find the country of the user selected language:
NSLocale *currentLocale = [NSLocale currentLocale];
In Swift:
let currentLocale = NSLocale.currentLocale() let countryCode = currentLocale.objectForKey(NSLocaleCountryCode) as? String
If you want to find the country code of the current time zone, see @ chings228 answer .
If you want to find the country code on the physical location of the device, you will need CoreLocation with reverse geocoding. See this question for details: How to get the current location from a user in iOS .
kennytm Oct 15 '10 at 8:32 2010-10-15 08:32
source share