как я могу решить 'nsunknownkeyexception' ... метода setvalue:forundefinedkey:]: ...не значение ключа кодирования совместимый


This question already has an answer here:

previousdone

Alright, I'll try and make this brief as possible. I wanted to a UIToolbar above my keyboard, and it took me a while to figure it out, and I eventually did, but when I tried adding function to the buttons *next* and my program would soon not compile.

The entire error message can be seen here:

2012-06-20 05:36:55.276 KegCop[79460:fb03] * Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key done.'

* First throw call stack: (0x134a022 0x1733cd6 0x1349ee1 0xd31022 0xca2f6b 0xca2edb 0xcbdd50 0x5a571a 0x134bdea 0x12b57f1 0x5a426e 0x7adeef 0x7ae03e 0x382d7a 0x382ff8 0x38217f 0x391183 0x391c38 0x385634 0x1f84ef5 0x131e195 0x1282ff2 0x12818da 0x1280d84 0x1280c9b 0x381c65 0x383626 0x2a8d 0x29f5 0x1) terminate called throwing an exception(lldb)

Apple Doc on Key value coding guidehttps://github.com/ipatch/KegCop

@Abizern suggested I should read the . Anyways it's super late, or super early however you look at it. The updated project can be found here:

ViewControllerWelcome.m

Just download the zip, and try and build and you will see what I am talking about. The error probably lies somewhere in the file.