【发布时间】:2013-10-14 19:07:03
【问题描述】:
我有一个接收推送通知的应用程序。
在我的故事板中,我有一个标签栏控制器,它有 4 个详细视图(嵌入了导航控制器)。
当我收到推送时,我可以设置正确的标签栏控制器。但我想把整条线都放到我的详细视图中。
NSString *storyboardId = @"TabFirst";
self.window.rootViewController = [self.window.rootViewController.storyboard instantiateViewControllerWithIdentifier:storyboardId];
UITabBarController *tabBar = (UITabBarController *)self.window.rootViewController;
tabBar.selectedIndex = 2;
有了这个,我得到了正确的 tabview。但是我怎样才能将它推送到正确的细节视图呢?而且我还需要用它发送一个对象(这样它就可以显示正确的数据)。
谢谢。
【问题讨论】:
-
我的应用委托中有此代码,didReciveRemoteNotification 方法。
-
请解释一下“从整条线到我的详细视图”??
标签: ios xcode uinavigationcontroller appdelegate