Error could not dequeue a view of kind UICollectionElementKindCell

前端 未结 13 1387
耶瑟儿~
耶瑟儿~ 2020-12-16 09:34

Taking first plunge with collection views and am running into this error:

Terminating app due to uncaught exception \'NSInternalInconsistencyException

13条回答
  •  臣服心动
    2020-12-16 10:16

    I had the same problem.
    When I created a CollectionViewController, the default reuseIdentifier was Cell with capital C, but I made a mistake and made my cell identifier in Storyboard to be cell
    They must be the same.

提交回复
热议问题