gpt4 book ai didi

ios - 我如何解决 'NSUnknownKeyException' ... setValue :forUndefinedKey:]: . ..不符合键值编码

转载 作者:IT王子 更新时间:2023-10-29 07:46:14 26 4
gpt4 key购买 nike

<分区>

好的,我会尽量让这个简短。我想在我的键盘上方添加一个 UIToolbar,我花了一段时间才弄清楚,我最终做到了,但是当我尝试向按钮添加功能时 previous *next* 和 done 我的程序很快就无法编译。

完整的错误信息可以在这里看到:

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)

@Abizern 建议我应该阅读 Apple Doc on Key value coding guide .无论如何,不​​管你怎么看,它都太晚了,或者太早了。可以在此处找到更新的项目:https://github.com/ipatch/KegCop

只需下载 zip,然后尝试构建,您就会明白我在说什么。该错误可能位于 ViewControllerWelcome.m 文件中的某处。

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com