I have two opinions similar to this on the Story Board:
[View1] → [Navigation Controller] → [View2]
To go from View1 (has a tabular view) to View 2, I do this by clicking a row in View1:
self.performSegueWithIdentifier("showmyview2", sender:self)
It works.
Now I have a button on View 2, which when pressed should return me to the previous view ie View 1.
I tried this:
navigationController!.popViewControllerAnimated(true)
But that does not work. How to return to the first view?
ios swift viewcontroller
Jasper
source share