invalid nib registered for identifier (CELLNAME) - nib must contain exactly one top level object which must be a UITableViewCell instance

后端 未结 14 2171
情书的邮戳
情书的邮戳 2020-12-14 00:03

Sorry for the long title, but I wanted it to be clearly seen from a google search. Also, this differs from many of the other similar questions on here as its not specifying

14条回答
  •  独厮守ぢ
    2020-12-14 00:33

    Sometimes you using storyboard and have collectionView inside it and collectionView as well. After that you decide to simplified your Storyboard and divide cell into another nib. You create empty nib, Ctrl+C from storyboard -> Ctrl+V into nib.

    Everything looks fine but you'll have Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'invalid nib registered for identifier (PrettyCollectionViewCell) - nib must contain exactly one top level object which must be a UICollectionReusableView instance'

    Ansver: do not do this. After I clean nib and add all of elements as I've in Storyboard - it fixed.

    Seems like Bug of xCode IB - Version 7.3.1 (7D1014)

提交回复
热议问题