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上被坑了。

全部评论

相关推荐

点赞 评论 收藏
分享
菜菜狗🐶:双非之光
找工作,你会甘心进小厂还...
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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