Open SuYungCheng opened 8 years ago
If you want a back button your controller must be pushed by a navigation controller.
You can do this:
let frontVC = self.revealViewController().frontViewController as? UINavigationController push it with SW: self.revealViewController().pushFrontViewController(frontVC, ...) and push the selected one with with the navigation controller: frontVC.pushViewController...
Can you tell the code in objective c
UINavigationController` *frontVC = (UINavigationController *)self.revealViewController.frontViewController;
[self.revealViewController pushFrontViewController:frontVC animated:YES];
[frontVC pushViewController: yourVC animated:YES];
Thanks a lot saving my day
My left menu has 3 items(VC1,VC2,VC3). If now I go to VC3 from VC2 by tapping the third item in left menu , then StoryBoard use "SWRevealViewControllerSeguePushController" push to VC3. How can I create a Custom "Back Button" in VC3 , and make the view back to previous VC?
I don't want to use this code:
Because I don't know how to get my previous VC's ID Thank you so much!