I am using Björn Sållarp's excellent Forward Geocoder, to be found at http://blog.sallarp.com/ipad-iphone-forward-geocoding-api-google/
However, I had to get rid of the "autorelease" in the code, since ARC does not support it. Now I have an "Expected Identifier" problem. Does anyone know how to deal with this? Here is original and the affected code:
ORIGINAL:
return [(NSString *)CFURLCreateStringByAddingPercentEscapes(kCFAllocatorDefault, (CFStringRef)string, NULL, (CFStringRef)kBSGeocodingLegalCharactersToBeEscaped, kCFStringEncodingUTF8) autorelease];
MY VERSION:
return [(NSString *)CFBridgingRelease(CFURLCreateStringByAddingPercentEscapes(kCFAllocatorDefault, (CFStringRef)string, NULL, (CFStringRef)kGeocodingLegalCharactersToBeEscaped, kCFStringEncodingUTF8))];
Btw, Xcode suggested to add the "CFBridgingRelease" to the original code.