ios - nib must contain exactly one top level object
ringa_lee2017-04-18 09:03:33
0
1
600
崩溃原因 reason: 'invalid nib registered for identifier (Cell) - nib must contain exactly one top level object which must be a UICollectionReusableView instance 需要检查哪里?
Are you registering a xib file to a reusable cell of UICollectionView? If you see an error, you need to check your xib file to see what is in the first layer. The correct result should be that there is only one thing in the xib file, and it should be a UICollectionViewCell (I can’t remember the specific class name, too lazy to check) , in short it should be a cell).
Are you registering a xib file to a reusable cell of UICollectionView? If you see an error, you need to check your xib file to see what is in the first layer. The correct result should be that there is only one thing in the xib file, and it should be a UICollectionViewCell (I can’t remember the specific class name, too lazy to check) , in short it should be a cell).