swift里的this class is not key val
2018-09-18 本文已影响9人
轻云绿原
有时候在swift里要使用setValue:forKey:
或setValue,forKeyPath:
要使key
或keyPath
满足@objc
,不然会有以上this class is not key value coding-compliant
错误.
一些其它类里要调用setValue:forKey:
或setValue,forKeyPath:
,也要@objc