Reputation: 589
I am trying to get the country name/ code from the coordinates that I get using CLLocationManager but I can t find a suitable function for that :
I found that there is something called MKReverseGeocoder and found several tutorials on it , but when I write that in my code it gives me a warning saying that it was deprecated .
what is the alternative , is there any tutorial for that ?
Thanks!
Upvotes: 2
Views: 2031
Reputation: 3727
MKReverseGeocoder
is deprecated in iOS 5.0. Use the CLGeocoder
class instead.
Upvotes: 4