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)'
CodePudding user response:
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.