美文网首页
swift里的this class is not key val

swift里的this class is not key val

作者: 轻云绿原 | 来源:发表于2018-09-18 15:21 被阅读9次

    有时候在swift里要使用setValue:forKey:setValue,forKeyPath:要使keykeyPath满足@objc,不然会有以上this class is not key value coding-compliant错误.
    一些其它类里要调用setValue:forKey:setValue,forKeyPath:,也要@objc

    相关文章

      网友评论

          本文标题:swift里的this class is not key val

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