有时候在swift里要使用setValue:forKey:
或setValue,forKeyPath:
要使key
或keyPath
满足@objc
,不然会有以上this class is not key value coding-compliant
错误.
一些其它类里要调用setValue:forKey:
或setValue,forKeyPath:
,也要@objc
有时候在swift里要使用setValue:forKey:
或setValue,forKeyPath:
要使key
或keyPath
满足@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
网友评论