美文网首页
Xcode编译xib连线报错

Xcode编译xib连线报错

作者: tiger2016 | 来源:发表于2018-12-15 13:13 被阅读22次

1.xib连线错误

判断对象能否连线要看对象的类是否继承与UIControl

错误一:

描述:

reason:'[<ViewController 0x9ggtnnc1w790> setValue:forUndefineKey:]this class is not key value coding-compliant the key testLabel.'

原因:有多余的连线,删除多余的连线即可

错误二:

描述:

reason:'-[ViewController clickBtn:] :unrecognized selector send to instance 0x9ggtnnc1w340'

原因:找不到对应的方法,添加对应的方法(或找到对应的方法连线),删除多余的连线

相关文章

网友评论

      本文标题:Xcode编译xib连线报错

      本文链接:https://www.haomeiwen.com/subject/bmzgxqtx.html