IOS在AppDelegate

时间:2015-06-02 09:50:05

标签: ios uiviewcontroller appdelegate

如何在UIViewController的{​​{1}}中展示addMessageFromRemoteNotification(导航中不是第一个)?

我试过了:

AppDelegate

但它不起作用,它总是显示第一个UINavigationController *navigationController = (UINavigationController*)_window.rootViewController; ChatViewController *chatViewController = (ChatViewController*)[navigationController.viewControllers objectAtIndex:1]; 而不是第二个。{/ p>

1 个答案:

答案 0 :(得分:0)

您可能需要添加:

[navigationController popToViewController:chatViewController animated:NO];