ios - calling UIViewController through UITabBarController for push -


In my app I have the UINViewie Controller as the initial view, the hierarchy is like this

< P> UINavigationController-> Login Vicentron -> UITBBC Controller -> UIVAVC Controller -> Master ViU Controller

MasterViu Controller has a tableview

When a Push Notification Now, I click on push notifications, the app is working on the background, Rate app opens to the master controller, the problem I have is that I open the app would like to update tables list Mastrwu controller when I push notifications.

I try to navigate from AppDelegate to MasterViewController like this

  - (zero) Application: (UIApplication *) The application did the receivermo notice: (NSDictionary * ) UserInfo {UINavigationController * navController = (UINavigationController *) self.window.rootViewController; Masterview Controller * Master Controller = [navController.viewControllers objectAtIndex: 0]; [Master controller update list]; }  

This is not working, when I receive a push, how can I update MasterView controller?

Thanax

This can also work. Application: (UIApplication *) application did the receivermemo notification: (NSDictionary *) userInfo {UIStoryboard * Storyboard = [UIStoryboard storyboardWithName: @ "Main" Bundle: Zero]; Master Wiiu Controller * MasterController = [Storyboard Institution VIPU Controller: @ "Your_StoreboardIDID"]; [Master controller update list]; }


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -