博客Markdown编辑器上线啦那些年我们追过的Wrox精品红皮计算机图书PMBOK第五版精讲视频教程火星人敏捷开发1001问
reason: 'Could not load NIB in bundle: "XXXXXXX" with name 'xxCell'
分类:
ios
错误信息: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类的名字,类名字写错了.
谨记:有些类名字很长,不要用手打出来,尽量复制.不要那么自信能拼对.少写或者多写都会导致出错,这是血的教训.
上一篇iOS The file “XXX” couldn’t be opened because you don’t have permission to view it.
顶0踩0
主题推荐猜你在找
查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
核心技术类目
,或许是某座闻名遐迩的文化古城。我们可以沿途用镜头记录彼此的笑脸,