... setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key latitudeLabel.


1 2012-07-31 00:52:35.709 apress-16-3[2345:f803] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<ViewController 0x6a71920> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key latitudeLabel.'

.xib 中的 Labe 控件鏈接到 .h 中的輸出口 latitudeLabel:

.m 中未合成

1 //@synthesize latitudeLabel;

這種情況下會產生這個錯誤。

 

我嘗試把 .xib 中的所有控件 和 ViewController 中的 輸出口 斷開聯系,再重新連上就可以了。

 

網上有關此問題的回答:.xib 未和 對應的ViewController關聯。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM