美文网首页
iOS 14 用StoryBoard遇到的坑

iOS 14 用StoryBoard遇到的坑

作者: LV大树 | 来源:发表于2020-12-18 14:10 被阅读0次
  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上被坑了。

相关文章

网友评论

      本文标题:iOS 14 用StoryBoard遇到的坑

      本文链接:https://www.haomeiwen.com/subject/iawxnktx.html