let modalVC = messageViewController.instantiateViewControllerwithIdentifier(self.storyboard!)
self.present(modalVC, animated: true, completion: nil)
Asked
Active
Viewed 114 times
-4

picciano
- 22,341
- 9
- 69
- 82
-
https://stackoverflow.com/questions/20742745/navigation-controller-push-view-controller – GoodSp33d Apr 17 '18 at 12:26
-
https://developer.apple.com/documentation/uikit/uinavigationcontroller/1621887-pushviewcontroller?language=objc – GoodSp33d Apr 17 '18 at 12:26
1 Answers
0
For Pushing your Story board id :
Do not forget to replace the StoryBoard id and VC name with yours.
let objAboutTheSessionVC = self.storyboard?.instantiateViewController(withIdentifier: "AboutTheSessionVC") as! AboutTheSessionVC
self.navigationController?.pushViewController(objAboutTheSessionVC, animated: true)

Abhirajsinh Thakore
- 1,806
- 2
- 13
- 23
-
1
-
@V_rohit I agree with your thoughts but, if user has asked here i have given answer for his reference. Thanks for taking a point on that. – Abhirajsinh Thakore Apr 17 '18 at 11:23