Hello I need to pass a String to Double , in this case the data will be passed from one ViewController to another via prepareForSegue and the < strong> Double I will use it to center a map in the position that you gave it by variable.
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
if segue.identifier == "Mapa_Rucapillan" {
var nextScene = segue.destinationViewController as! mapController
nextScene.ResivedLat = "100.0"
nextScene.ResivedLong = "40.0"
}
Here I send the data.
var ResivedLat: String = ""
var ResivedLong: String = ""
there they are received and I want to pass them to Double.