let nextPage = storyboard?.instantiateViewController(withIdentifier: "PageOne") as? SeconViewController
self.navigationController?.pushViewController(nextPage!, animated: true)
One more Example:
One more Example:
@IBAction func backHomePage(_ sender: UIBarButtonItem) {
let backHome = storyboard?.instantiateViewController(withIdentifier: "homePage") as! ViewController
self.navigationController?.pushViewController(backHome, animated: true)
}


0 Comments