Question : swift push view controller
Answered by : mobile-star
let vc = UIStoryboard.init(name: "Main", bundle: Bundle.main).instantiateViewController(withIdentifier: "IKDetailVC") as? IKDetailVC
self.navigationController?.pushViewController(vc!, animated: true)
Source : | Last Update : Wed, 11 Mar 20
Question : push view controller programmatically swift 5
Answered by : bored-beetle-nqf6cgi9p9w9
let vc = LoginViewController(nibName: "LoginViewController", bundle: nil)
self.navigationController?.pushViewController(vc, animated: true)
Source : https://stackoverflow.com/questions/27374759/programmatically-navigate-to-another-view-controller-scene | Last Update : Sun, 04 Jul 21
Question : swift push view controller programmatically
Answered by : repulsive-raccoon-9iw4f44m0t64
let storyBoard : UIStoryboard = UIStoryboard(name: "Main", bundle:nil)
let nextViewController = storyBoard.instantiateViewController(withIdentifier: "nextView") as! NextViewController
self.present(nextViewController, animated:true, completion:nil)
Source : https://stackoverflow.com/questions/27374759/programmatically-navigate-to-another-view-controller-scene | Last Update : Mon, 22 Jun 20