首页 > 其他 > 详细

*** Assertion failure in -[UICollectionView _dequeueReusableViewOfKind:withIdentifier:forIndexPath:viewCategory

时间:2015-02-13 12:57:50      阅读:5157      评论:0      收藏:0      [点我收藏+]

报错提示:

 

*** Assertion failure in -[UICollectionView _dequeueReusableViewOfKind:withIdentifier:forIndexPath:viewCategory:], /SourceCache/UIKit_Sim/UIKit-3318.16.14/UICollectionView.m:3307

 

 *** Terminating app due to uncaught exception ‘NSInternalInconsistencyException‘, reason: ‘invalid nib registered for identifier (SXDealCellID) - nib must contain exactly one top level object which must be a UICollectionReusableView instance‘

 

 

解决方案:

  在自定义xib时,额外多了一个控件在另外的区域,把此控件删掉即可。

*** Assertion failure in -[UICollectionView _dequeueReusableViewOfKind:withIdentifier:forIndexPath:viewCategory

原文:http://www.cnblogs.com/songxing10000/p/4289971.html

(1)
(19)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!