佚名通过本文主要向大家介绍了storyboard,storyboard quick,storyboard是什么意思,toon boom storyboard,storyboard pro等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
问题:storyboard iOS中storyboard的问题
描述:
解决方案1:
描述:
storyboard中设置了两个界面。
在代码中使用
[self.navigationController pushViewController:[[SCMainViewController alloc]init] animated:YES];
怎么跳转过去没有加载啊
不能再用纯代码方式去跳转了吗。。只能用segue吗
解决方案1:
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"xxx" bundle:nil];
SCMainViewController *vc = [storyboard instantiateViewControllerWithIdentifier:NSStringFromClass([SCMainViewController class])];
[self.navigationController pushViewController:vc animated:YES];
解决方案2:可以跳转的,感觉你的 Stroyboard
上相对应的 ViewController
没有关联 Class
- SCMainViewController
。
您可能想查找下面的文章:
- storyboardiOS中storyboard的问题
- 使用storyboard建立tableview运行时代码运行了三次是什么情况?
- storyboard页面跳转到代码页面,UINavigationController在代码页面没有成功显示
- (swift)storyboard中TableViewController无法调用自定义类
- storyboard中tableheaderview的自适应高度问题
- (swift)在storyboard中,TableVC跳转到一个VC,这样可行吗?
- storyboardstoryboard页面跳转和传值
- storyboard约束出错导致textfileld位置移动,如何根据以下报错信息排查问题位置