ios - how to get currently viewing viewcontroller? -


When a push notification arrives, I'm looking at the ViewController method. DidReiveiveRemoteNotification: of AppDelegate I am using both the tabbar controller and the navigation controller in my app. When I try to get it from the navigation stack (top item), I get my CustomNavigationController . But I have to get ViewController to see (can be an item in the tabbar) Thank you in advance will help you please.

Just create a variable in the ViewAdload or see the Dippier for tabbar and apply it.

You can see this controller being seen using this current view.


Comments