यह बहुत आसान हो सकता है, लेकिन मुझे यह पता नहीं लगता है कि URLWithString:यहाँ क्यों लौट रहा है।
//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आपके कॉल करने से पहले का मूल्य क्या हैstringWithFormat:? फिर,stringURLआपके कॉल करने से पहले का मूल्य क्या हैURLWithString:?NSLog()उन्हें चरण दर चरण प्रिंट करने के लिए उपयोग करें , या, ब्रेकपॉइंट सेट करें और मान सेट किए जाने पर निरीक्षण करें।