zoukankan      html  css  js  c++  java
  • his class is not key value codingcompliant for the key

    this class is not key value coding-compliant for the key

    一般此问题 都是由interface build与代码中IBOutlet的连接所引起的。

    可能是在代码中对iboutlet的名称进行了修改,导致interface build中的连接实效。

    如果在该viewcontroller连接的xib文件中没发现错误,

    那就很可能是mainWindow.xib文件中存在问题,

    本人遇到的问题是在mainWindow.xib的tabbarcontroller的某个tab的viewcontroller设置了loadfrom"**.xib",

    但忘了将其class设为对应的viewcontroller类了。

    仔细检查自己的nib文件,清理、修正不正确的连接关系即可。

    LRDemo[55313:c07] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<MainViewController 0x8852580> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key mainTableView.'



    求助:为什么在 两个文件  其中一个是 MainViewController 另一个是 TestViewController 他们里面都是空的,没有内容, 然而 MainViewController 不可以用,一用就出错 提示:

    LRDemo[55313:c07] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<MainViewController 0x8852580> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key mainTableView.'

    而 TestViewController 可用呢

    郁闷中

  • 相关阅读:
    104. 二叉树的最大深度
    Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[]]
    python-admin管理后台
    django-cookies 和session
    django-关系映射
    django-关系映射 一对一 一对多 多对多
    django-Meta类
    django-orm聚合查询和原生数据库查询
    django-F对象、Q对象
    django-orm删除数据
  • 原文地址:https://www.cnblogs.com/javawebsoa/p/3031612.html
Copyright © 2011-2022 走看看