Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/93.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 在Swift编程中将urlpath添加到NSUrl时获得零_Ios_Map_Swift - Fatal编程技术网

Ios 在Swift编程中将urlpath添加到NSUrl时获得零

Ios 在Swift编程中将urlpath添加到NSUrl时获得零,ios,map,swift,Ios,Map,Swift,mapServerRequest=“美国纽约州纽约市中城” 您应该对地图地址进行URL编码: mapAddress.stringByAddingPercentEncodingWithAllowedCharacters(NSCharacterSet.URLPathAllowedCharacterSet()) 你应该对地址中的空格进行编码。Thaku它在@cornelius工作 mapAddress.stringByAddingPercentEncodingWithAllowedCharacter

mapServerRequest=“美国纽约州纽约市中城”


您应该对地图地址进行URL编码:

mapAddress.stringByAddingPercentEncodingWithAllowedCharacters(NSCharacterSet.URLPathAllowedCharacterSet())

你应该对地址中的空格进行编码。Thaku它在@cornelius工作
mapAddress.stringByAddingPercentEncodingWithAllowedCharacters(NSCharacterSet.URLPathAllowedCharacterSet())