ios - Get list of all currently visible ViewControllers -


i have app implements slide out navigation drawer. when on view controllers , choose go somewhere else in app, want pop modal view controller i'm leaving confirm user wants leave page.

the problem is, need reference view controller call delegate method have established this, checks needs to. how can reference visible view controllers on screen?

i've tried getting root view controller , accessing child view controllers, i've tried getting navigation controller , accessing view controllers, none of these have worked.

basically, need way reference view controller on screen, if there way that. appreciated!


Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -