I'm trying to set an object of myViewController
called myVC
to the window's rootViewController on the AppDelegate
like that:
-(void)application:(UIApplication *)application handleActionWithIdentifier:(NSString *)identifier forLocalNotification:(UILocalNotification *)notification completionHandler:(void (^)())completionHandler
{
self.myVC=(myViewController*)self.window.rootViewController;
}
It's all working when the app is running but on the background it doesn't working at all.
Anybody knows how can I make it work on the background as well?
Thank you!