十一岁的加重songxing10000…… ------ 回到博主首页

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

报错提示:

 

*** 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时,额外多了一个控件在另外的区域,把此控件删掉即可。

posted @ 2015-02-13 11:23  songxing10000  阅读(2255)  评论(0编辑  收藏