Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Hello all, please help i am adding two collection views in one screen and getting this error

2022-08-05 22:33:19.540459+0530 MyProduct[1152:11251] *** Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘view reuse identifier in nib (story) does not match the identifier used to register the nib (StoryCell)’

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

As the error says, you’re trying to call something like:

yourTableView.register(yourNib, forIdentifier: .init(rawValue: "StoryCell"))

to register yourNib for the id "StoryCell".

The issue is that that actual reuse identifier for the cell in the nib is "Story", not "StoryCell". The two need to match.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading