Need help with 'NSUnknownKeyException'

I received this message, but I could not decide. Message:

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

can someone help me with this please.

+4
source share
2 answers

This is usually due to the removal of the IB object, but be sure to delete its references.

IE removes the UIScrollView, but forgets to delete how it used the link in the UIView through IBOutlet.

If the same problem were today today ... found the answer here: http://www.iphonedevsdk.com/forum/iphone-sdk-development/47036-setvalue-forundefinedkey-class-not-key-value-coding-compliant -key.html

+7
source

In case this helps someone else, after checking and updating all your connections between the views and the corresponding IBOulet, clearing the project can sometimes fix this problem.

0
source

Source: https://habr.com/ru/post/1337619/


All Articles