iOS使用XIB文件报错:reason: 'A view can only be associated with at most one view controller at a time!
来源:互联网 发布:单端口多用户什么意思 编辑:程序博客网 时间:2024/05/21 17:22
分析原因:
由于控制器的xib文件名称和类名不一致,需要进行修改才可以,或者更改加载方法解决。
解决办法:
ViewController *vc = [[NSBundle mainBundle] loadNibNamed:
@"ViewController" owner:nil options:nil ].lastObject;
[self.navigationController pushViewController:vc animated:YES];
阅读全文
0 0
- iOS使用XIB文件报错:reason: 'A view can only be associated with at most one view controller at a time!
- ios error:A view can only be associated with at most one view controller at a time
- svn报错can only be performed on a version resource [at this time].
- svn报错can only be performed on a version resource [at this time].
- Error: "Database 'XXX' is already open and can only have one user at a time"
- 请求权限调不起来,Can request only one set of permissions at a time
- CHECKOUT can only be performed on a version resource [at this time].
- 135 Which three statements are true about windows? (Choose three.) A. Only one window can be open at
- 155 Which three statements are true about windows? (Choose three.) A. Only one window can be open at
- android.view.InflateException: <merge /> can be used only with a valid ViewGroup root and attachToRo
- 报错Application windows are expected to have a root view controller at the end of application launc
- vss 2005 提示 Only one database connection at a time is supported的处理
- MySQL 数据表创建报错:there can be only one auto column and it must be defined as a key
- iOS 9出现错误Applications are expected to have a root view controller at the end of application launch
- iOS每次启动都提示:Application windows are expected to have a root view controller at the end of application
- 报错:Only the original thread that created a view hierarchy can touch its views.
- [Python]Processing a String One Character at a Time
- Recipe 1.1. Processing a String One Character at a Time
- JAVA通过JDBC链接数据库获取数据(三)PreparedStatement预编译SQL
- 【007】Java语言(环境变量配置)
- 我是如何对网站CSS进行架构的
- ssm+shiro+UEditor整合
- 自定义View,绘制图文混合
- iOS使用XIB文件报错:reason: 'A view can only be associated with at most one view controller at a time!
- CVE-2017-0199漏洞传播远控木马
- Oracle 11g利用Create Database手工创建数据库
- HTML5 与 HTML4 的区别
- 推荐系统实践笔记(一)
- Python从零开始(hello world)
- HDU1069 猴子叠木块
- 日志收集之Flume
- 数据结构 算法 复习