如何处理tabbar的推送通知,我的tabbar控制器远离根视图控制器

时间:2013-11-29 07:58:00

标签: ios ios7 storyboard apple-push-notifications

我已在我的应用程序中成功实现了push notification part。但我正在handling the push notification flow中面对这些问题。

我的要求是:点击推送通知后,我想导航到我的标签栏远离根视图的标签栏。请看下面的流程。对不起我没有足够的声誉来发布我的故事板图像。

root view controller                           | ---> controller 4 --> TABBAR CONTROLLER 
   ---> login view controller                  | ---> controller 2
               ---> *side menu view controller | ---> controller 1
                    *(like Facebook side menu)
                                               | ---> controller 3

1 个答案:

答案 0 :(得分:0)

用于识别和推送到ViewController(Look at my another Anser Here

AppDelegate

实施此方法
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
{
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
            UITabBarController *obj=[storyboard instantiateViewControllerWithIdentifier:@"tab"];
            self.navigationController.navigationBarHidden=YES;
            [self.navigationController pushViewController:obj animated:YES];
}