storyboard中设置了两个界面。
在代码中使用
[self.navigationController pushViewController:[[SCMainViewController alloc]init] animated:YES];
怎么跳转过去没有加载啊
不能再用纯代码方式去跳转了吗。。只能用segue吗
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
可以跳转的,感觉你的
Stroyboard
上相对应的ViewController
没有关联Class
-SCMainViewController
。先要在storyBoard里面填好StoryBoard ID

然后使用下面的代码加载viewController:
1.绑定类

2.push