收到推送跳到指定页面会用到
// 取到tabbarcontroller
UITabBarController *tabBarController = (UITabBarController*)self.window.rootViewController;
// 取到navigationcontroller
UINavigationController * navgationcontroller = (UINavigationController *)tabBarController.selectedViewController;
UIViewController *viewcontroller = [[UIViewController alloc]init];
[navgationcontroller pushViewController:viewcontroller animated:YES];
网友评论