Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UITableViewCell Error: this class is not key value coding-compliant [duplicate]

When I run my app and test a view controller with a table view, the following error is created:

Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UITableViewCell 0x7ff068023b30> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key albumImageView.'

I created this cell by duplicating another UITableViewCell xib file and view controller and making the necessary modifications. I tried deleting and recreating all outlet connections with the new view controller. The Custom Class is correctly entered for the table view cell.

Would appreciate if anyone has advice on how to fix this error.

enter image description here

like image 801
David Avatar asked Jun 10 '26 01:06

David


1 Answers

The issue was fixed by checking "Inherit Module From Target" in the Custom Class section.

like image 188
David Avatar answered Jun 15 '26 08:06

David



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!