iOS reason: 'invalid nib registered for identifier (GroupMustKnowViewCell)
来源:互联网 发布:网络视频广告的形成 编辑:程序博客网 时间:2024/06/01 23:24
在写 UICollectionView 的时候,注册 cell 时遇到了这样的错误信息:
reason: 'invalid nib registered for identifier (GroupMustKnowViewCell) - nib must contain exactly one top level object which must be a UICollectionReusableView instance'
翻译:
无效的 nib 注册标识符(重要符号),nib 必须包含一个顶级对象,它必须是一个 UITableViewCell 实例'
所以,通过 xib 创建 cell 的时候 一定要注意!该错误是在 xib 中的 cell 的同一层级出现了其他的控件,检查一下 xib 中左边的层级关系,让 cell 的 view 是唯一的控件就可以了。
查看后发现确实有一个平级的Label 删除它成功
阅读全文
0 0
- iOS reason: 'invalid nib registered for identifier (GroupMustKnowViewCell)
- iOS 【invalid nib registered for identifier(Cell)】
- invalid nib registered for identifier。。。nib must contain exactly one top level
- 自定义cell的时候出现的错误(用的nib而不是storyboard)invalid nib registered for identifier ((null)) - nib must contain
- iOS开发:The NIB data is invalid.
- 【iOS】iOS/Xcode异常:reason:loaded the “SimpleTableViewController” nib but the view outlet was not set
- iOS reason: loaded the "XXX.xib" nib but the view outlet was not set.'
- iOS reason: 'Invalid Region <center:+113.15000000, +23.02000000 span:+1.25000000, +1.25000000>'
- ios reason: 'Invalid parameter not satisfying: url'((无效的URL))
- unable to dequeue a cell with identifier xxx - must register a nib or a class for the identifier
- unable to dequeue a cell with identifier cell - must register a nib or a class for the identifier or
- unable to dequeue a cell with identifier - must register a nib or a class for the identifier...问题
- IOS常见bug.001—'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of rows in
- IOS删除tableview'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of rows in
- iOS: 'The NIB data is invalid' exception with Xcode 4.5(真机出现的问题)
- must register a nib or a class for the identifier or connect a prototype cell in a storyboard'的解决办法
- UITableViewCell unable to dequeue a cell with identifier Cell - must register a nib or a class for t
- unable to dequeue a cell with identifier Identify - must register a nib or a class for the identifie
- contiki之list(2)
- TP5验证码点击刷新与验证
- oracle 自定义类型 type / create type
- 树链剖分详解及其模板题
- IBM RATIONAL BUILDFORGE入门
- iOS reason: 'invalid nib registered for identifier (GroupMustKnowViewCell)
- 集群间实现Session共享
- 高德地图开发-- 自定义图标
- 机器学习笔记之逻辑回归算法
- hdu 6181 Two Paths (次短路)
- java 心跳机制
- 测量菜鸡的基地总结
- python
- EventBus简单使用