zoukankan      html  css  js  c++  java
  • ... setValue:forUndefinedKey:]: this class is not key value codingcompliant 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关联。

  • 相关阅读:
    js 将u003C这一类东西转换为标签
    git使用
    js_03 面向对象
    初级算法 数组
    python 用execjs执行js代码
    js_02 函数
    递归
    01 .linux常用命令
    08. 脱缰的野马 crawlspider
    SPACES:“抽取-生成”式长文本摘要(法研杯总结)
  • 原文地址:https://www.cnblogs.com/submarinex/p/2616151.html
Copyright © 2011-2022 走看看