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