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 可用呢

        闷郁中

    文章结束给大家分享下程序员的一些笑话语录: 联想——对内高价,补贴对外倾销的伟大“民族”企业。

  • 相关阅读:
    .NET日期格式化
    Win7 计算机(我的电脑)右键菜单“管理”打不开,解决方法
    没有对“Temporary ASP.NET Files”的写访问权限
    Android安装jsk出错
    WPF 处理 系统Scale参数
    WPF WindowChrome 自定义标题栏时窗体阴影效果设置
    使用WindowChrome 在切换ResizeMode值时的问题
    Vue.js provide / inject 踩坑
    MYSQL 查询日期最大的那条记录
    所有子一级元素添加阴影
  • 原文地址:https://www.cnblogs.com/jiangu66/p/3031490.html
Copyright © 2011-2022 走看看