KVC和KVO的keyPath一定是属性么?
2018-04-05 本文已影响47人
natewang
KVC实例变量也可以,KVO需要自己在set方法里实现willChangeValueForKey didChangeValueForKey
还要自己实现 automaticallyNotifiesObserversForKey 手动进行监听
KVC实例变量也可以,KVO需要自己在set方法里实现willChangeValueForKey didChangeValueForKey
还要自己实现 automaticallyNotifiesObserversForKey 手动进行监听