swift里的this class is not key val

2018-09-18  本文已影响9人  轻云绿原

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

上一篇下一篇

猜你喜欢

热点阅读