`
wenxin2009
  • 浏览: 315074 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

AppDelegate文件中跳转页面

    博客分类:
  • ios
 
阅读更多

目前知道有两种方式,自己小结一下:

方式一:

    UINavigationController *presentNav = [[UINavigationController alloc] initWithRootViewController:vcReply];
    [self.window.rootViewController presentViewController:presentNav animated:YES completion:^{
        
    }];

 

方式二:

    if ([self.window.rootViewController isKindOfClass:[UINavigationController class]]) {
        UINavigationController *nacvAD = (UINavigationController *)self.window.rootViewController;
        [nacvAD pushViewController:vcReply animated:YES];
    }

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics