我试图编写代码CLLocationCoordinate2DMake
来改变,array
所以纬度和经度将根据indxPath
......就像我在这里尝试过的那样:
var Longitude = ["32.101145","32.074961","",""]
var Latitude = ["34.775163","34.781679","","",""]
//What i tried :
let LightHouseLocation = CLLocationCoordinate2DMake(Longitude[indexPath.row],Latitude[indexPath.row])
// Drop a pin
但当然它会给我带来错误。如果有人可以帮助我,我将不胜感激,谢谢。