I working on a example to using MKReverseGeocoder to convert lat,long to address. But when i received data and try to get the result i received string from as below:
NSString *street = [geocoder.addressDictionary objectForKey:@"Street"];
I received a address like this: "Ng\U00f5 381 Nguy\U1ec5n Khang".
How can i convert it to unicode formatted string?
Thanks in advance.
If you are getting the MKPlaceMark object back from the MKRevereseGeocoder delegate callback you can use the following to turn the placemark into a readable address:
You need to add the AddressBookUI framework to your project and
as well.
I'm not sure that the response is unicode, but it looks like it does a reasonable job of representing all the data in the placemark.
Untested, but
And the framework needed is 'Contacts' so get that included with:
should be the new way of doing things in iOS11.0+