如何在UIViewController
的{{1}}中展示addMessageFromRemoteNotification
(导航中不是第一个)?
我试过了:
AppDelegate
但它不起作用,它总是显示第一个UINavigationController *navigationController = (UINavigationController*)_window.rootViewController;
ChatViewController *chatViewController = (ChatViewController*)[navigationController.viewControllers objectAtIndex:1];
而不是第二个。{/ p>
答案 0 :(得分:0)
您可能需要添加:
[navigationController popToViewController:chatViewController animated:NO];