reason: 'Could not load NIB in bundle: "XXXXXXX" with name 'xxCell'
来源:互联网 发布:大智慧大数据终端 编辑:程序博客网 时间:2024/06/10 14:42
错误信息:reason: 'Could not load NIB in bundle: 'NSBundle </Users/caitong/Library/Developer/CoreSimulator/Devices/5EC57F6E-CC41-4FD6-80D7-443B52B9D181/data/Containers/Bundle/Application/BB8E1CAE-441F-46FF-802A-EFC05088D841/ColleceService.app> (loaded)' with name 'collectViewCell''
查找原因:UICollectionView注册的是时候出错;
如下:
[self.collectionView registerNib:[UINib nibWithNibName:@"schoolViewCell" bundle:nil] forCellWithReuseIdentifier:identifer];
正确应该是cell类的名字,类名字写错了.
谨记:有些类名字很长,不要用手打出来,尽量复制.不要那么自信能拼对.少写或者多写都会导致出错,这是血的教训.
0 0
- reason: 'Could not load NIB in bundle: "XXXXXXX" with name 'xxCell'
- 'Could not load NIB in bundle: 'NSBundle < /Bundle/Application/ .app> (loaded)' with name 'Car
- Could not load NIB in bundle: 'NSBundle <xxx> (loaded)' with name ''xxx''
- exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle解决办法
- Could not load the "logo.png" image referenced from a nib in the bundle with identifier
- Could not load the "" image referenced from a nib in the bundle with identifier XXXXX
- Could not load the "*.png" image referenced from a nib in the bundle with identifier
- Could not load the "null" image referenced from a nib in the bundle with identifier ""
- Could not load the "" image referenced from a nib in the bundle with identifier "com.****.***
- 打印出现:Could not load the "" image referenced from a nib in the bundle with identifier
- Could not load the "start.png" image referenced from a nib in the bundle with identifier
- 报错:'Could not load NIB in bundle: 'NSBundle解决办法
- 'Could not load NIB in bundle: 'NSBundle解决办法
- 151211Exception : Could not load NIB in bundle
- iOS-XIB Could not load NIB in bundle
- image asset:Could not load the "scene" image referenced from a nib in the bundle with identifier
- Could not load the "start.png" image referenced from a nib in the bundle with identifier "com.yourco
- Could not load the "XX.jpg" image referenced from a nib in the bundle with identifier "cn.Norm"
- SQL聚合函数
- 设置指定目录的SVN分支
- PAT 04-2. File Transfer (25) (并查集)
- java面向对象和类
- iReport 按某个字段(属性)值分页打印
- reason: 'Could not load NIB in bundle: "XXXXXXX" with name 'xxCell'
- my git log
- POJ-3984-迷宫问题
- Android开发优化之——从代码角度进行优化
- CentOS7 ping通 telnet不通
- 深入理解Arrays.sort()
- {A} + {B}
- iOS 根据不同的系统版本加载不同图片方法
- iOS:堆(heap)和栈(stack)的理解