I have a LocalNotification which invokes the application.
In the application, almost all view are connected with NavigationController to show header bar and the "global menu".
When the application was invoked by the action from the Notification, the AppDelegate must call a WebView containing the "global menu". That means, I have to add this "WebView" to the application's NavigationController.
Firstly, I tried something like this:(in AppDelegate)
UIViewController *currentVc = self.window.rootViewController;
[currentVc.navigationController pushViewController:orderVc animated:NO];
But it won't display anything. So I have tried this way:
UIViewController *currentVc = self.window.rootViewController;
[currentVc presentViewController:orderVc animated:NO completion:nil];
Then the WebView(currentVc) displays but it's not under the whole app's Navigation Controller, so no "global menu".
I have checked if UIViewController (self.window.rootViewController) was nil but it's not.
I have searched around and found many similar questions but they're all opposit of my case.
Are there any simple way to add ViewController to the NavigationController to show "header bar"? Sorry for too vague question, but I really need help again.
Thanks in advance.