samar
Get current country from iPhone ??
1 Answer(s)      4 years and 6 months ago
Posted in : MobileApplications

hello,

I want to get the current country in the iPhone settings. Can anyone tell me how to get the current country in iPhone application.

Advertisement
View Answers

October 21, 2010 at 2:24 PM


hello,

here is some code which is used for

NSLocale* current_Locale = [NSLocale currentLocale];  
NSString* country_Code = [currentLocale objectForKey:NSLocaleCountryCode];

now you can get current country..










Related Tutorials/Questions & Answers: