Answers for "push viewcontroller swift"

1

swift push view controller

let vc = UIStoryboard.init(name: "Main", bundle: Bundle.main).instantiateViewController(withIdentifier: "IKDetailVC") as? IKDetailVC
self.navigationController?.pushViewController(vc!, animated: true)
Posted by: Guest on March-04-2020
-1

swift push view controller programmatically

let storyBoard : UIStoryboard = UIStoryboard(name: "Main", bundle:nil)
let nextViewController = storyBoard.instantiateViewController(withIdentifier: "nextView") as! NextViewController
self.present(nextViewController, animated:true, completion:nil)
Posted by: Guest on June-15-2020

Code answers related to "push viewcontroller swift"

Code answers related to "Swift"

Browse Popular Code Answers by Language