|
func jump2Segue() {
if let indexPath = tableview.indexPathForSelectedRow {
let city:City = cities[indexPath.row]
let storyBoard: UIStoryboard = UIStoryboard(name: "Main", bundle: nil)
if let newViewController = storyBoard.instantiateViewController(withIdentifier: "InputViewController") as? InputViewController {
let city:City = cities[indexPath.row]
newViewController.city=city
self.present(newViewController, animated: true, completion: nil)
}
}
}
|
|