c'est peut-être très facile, mais je ne semble pas savoir pourquoi le URLWithString:retour est nul ici.
//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];
webNameavant votre appelstringWithFormat:? Alors, quelle est la valeurstringURLavant votre appelURLWithString:? UtilisezNSLog()pour les imprimer étape par étape, ou définissez des points d'arrêt et inspectez les valeurs au fur et à mesure qu'elles sont définies.