Get current country from iPhone ??

Ads
 

Get current country from iPhone ??

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.

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

Ads









Related Tutorials/Questions & Answers:

Ads