iOS 14 用StoryBoard遇到的坑

  UIStoryboard * sb =
        [UIStoryboard storyboardWithName:@"Main" bundle:nil];
        UIViewController * peInfo =
        [sb instantiateViewControllerWithIdentifier:@"info"];
        
        NSLog(@"%@--%@",self.navigationController,peInfo);
        if (self.navigationController && peInfo) {
            [self.navigationController pushViewController:peInfo animated:YES];
        }else{
            [self presentViewController:peInfo animated:YES completion:nil];
        }
       

上面这段代码 ,在ios14之前都好好的,今天
在ios14.3上被坑了。

全部评论

相关推荐

点赞 评论 收藏
分享
点赞 评论 收藏
分享
06-02 15:17
门头沟学院 Java
心爱的idea:怎么会呢 应该是打招呼有问题 问就说实习6个月全国可飞随时到岗
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务