iDevelopper / PBRevealViewController

A UIViewController subclass for revealing a left and/or right view controller above or below a main view controller.
MIT License
80 stars 16 forks source link

Navigation back through navigation controllers? #15

Closed Dbigshooter closed 7 years ago

Dbigshooter commented 7 years ago

Hi there,

I want to navigate back to another specific viewcontroller, but can't figure out how this is done, especially not when PBRevealViewController is in there. I've tried to draw what I want, any help will be greatly appreciated!

pbrevealviewcontrollernavigation

iDevelopper commented 7 years ago

It is very difficult to read as the image is blurred. But I think you have to save somewhere a reference to the first reveal view controller.

Dbigshooter commented 7 years ago

@iDevelopper Thanks for the quick response! How would you do that?

iDevelopper commented 7 years ago

You could declare a variable in AppDelegate and save to it the first revealViewController then you can retrieve it from anywhere.

iDevelopper commented 7 years ago

Sample:

PBTwoRevealVC.zip