let storyBoard : UIStoryboard = UIStoryboard(name: "Main", bundle:nil)
let nextViewController = storyBoard.instantiateViewControllerWithIdentifier("B") as! B
sideMenuController()?.setContentViewController(nextViewController)
Hi,
Seems there is only one view controller in the navigation stack. You need to push view controller first, then you can perform popViewControllerAnimated
I use following code to come back to ViewController B to A, but it doesn't work
The code below was used to switch from A to B: