ios - nib must contain exactly one top level object
ringa_lee
ringa_lee 2017-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
需要检查哪里?

ringa_lee
ringa_lee

ringa_lee

reply all (1)
黄舟

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).

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!