Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Mobile-Applications Get current country from iPhone ??
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


samar
Get current country from iPhone ??
1 Answer(s)      4 years 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:
 

 

 

DMCA.com