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!
MKReverseGeocoderis deprecated in iOS 5.0. Use theCLGeocoderclass instead.http://developer.apple.com/library/ios/#documentation/CoreLocation/Reference/CLGeocoder_class/Reference/Reference.html#//apple_ref/occ/cl/CLGeocoder