it may be very easy, but I don't seems to find out why is URLWithString:
returning nil here.
//localisationName is a arbitrary string here
NSString* webName = [localisationName stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
NSString* stringURL = [NSString stringWithFormat:@"http://maps.google.com/maps/geo?q=%@,Montréal,Communauté-Urbaine-de-Montréal,Québec,Canadae&output=csv&oe=utf8&sensor=false&key=", webName];
NSURL* url = [NSURL URLWithString:stringURL];
webName
before your call tostringWithFormat:
? Then, what is the value ofstringURL
before your call toURLWithString:
? UseNSLog()
to print them out step by step, or, set breakpoints and inspect the values as they are set. – Olnton