Any other way to figure out user country on iphone except using NSLocaleCountryCode
I want to restrict some contents of my app based on user country (from where app is currently being accessed). I am开发者_如何学编程 aware of NSLocaleCountryCode
but the issue is that user can go ahead and change the location used/returned by NSLocaleCountryCode
in iPhone settings.
Is there any other way to figure out user's country?
Get the latitude and longitude of the user and found out the country. It will give the exact result.
精彩评论