Swift画面遷移 - ntuf/Tips GitHub Wiki
■画面遷移の方法の種類をまとめておく(今度こそ)
①画面間をセグエで繋いで、performSegueを呼ぶ(遷移直前にprepareで値を渡す)
②ストーリーボードで画面にidentiferつけておいて直でpresentする。
×③セグエもストーリーボードも使わず直でpresent ×できない×
let vc = 〜ViewController()
self.present(vc, animated: true, completion: nil)
③NavigationControllerだと
pushViewControllerとpopViewController