常见错误


- 第1个错误
    - 错误描述:

    [<ViewController 0x7fdc0152d300> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key label.

    - 原因:IBOutlet属性代码被删掉了,但是属性连线还在
    - 解决:将残留的连线删掉

- 第2个错误
    - 错误描述:

-[ViewController blueClick]: unrecognized selector sent to instance 0x7ff59d014320

    - 原因:调用了一个不存在的方法
    - 解决:认真检查方法名,使用正确并且存在的方法名

posted @ 2016-08-02 23:04  iFat  阅读(94)  评论(0编辑  收藏  举报