I just wanted to know how I could find out the current user’s country using Xcode (iPhone Dev SDK).
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want to get the users country you can do two things. The easiest is to deciper it from their localization settings.
This can be unreliable (e.g. a user who is abroad). If you depend on the information you should use CoreLocation to find the users current location and then use reverse geo-tagging to get the country from the co-ordinates. Take a look at the CoreLocation Framework reference. It should help you.