Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
[ad_1]
I wish to create a navigation hierarchy the place I wish to go to a SecondViewController from FirstViewController utilizing a NavigationController. The FirstViewController accommodates a button B that I intend to make use of to go to a SecondViewController. I’m using the navigation controller idea since I wish to return to the FirstViewController later. I’ve executed the next steps to realize it:
nvc = UINavigationController.init(rootViewController: firstViewController)
self.nvc?.pushViewController(secondViewController, animated: true)
Nonetheless, the secondView does not current itself even after pushing.
self.performSegue(withIdentifier: "kSegue", sender: self)
An exception happens when each the 4th and fifth steps are carried out collectively. The exception states that I am pushing a viewController that already exists on the navigation hierarchy, however the second view nonetheless does not open even when I remark the performSegue code.
Might I ask what mistake I’m making right here?
[ad_2]