
KVO
csdn_coder_zxq
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
KVO 阅读(Introduction)
KVO Key-value observing is a mechanism that allows objects to be notified of changes to specified properties of other objects. KVO 是一种机制:当其它对象的特定属性改变时会通知某个对象。 ...翻译 2019-05-09 21:38:15 · 109 阅读 · 0 评论 -
KVO Dependent Keys (注册依赖 Keys)
Registering Dependent Keys 官方文档 There are many situations in which the value of one property depends on that of one or more other attributes in another object. If the value of one attribute changes, ...翻译 2019-05-20 13:41:00 · 179 阅读 · 0 评论 -
KVO automaticallyNotifiesObserversForKey:
KVO automaticallyNotifiesObserversForKey: Return YES if the key-value observing machinery should automatically invoke -willChangeValueForKey:/-didChangeValueForKey:, -willChange:valuesAtIndexes:forKe...翻译 2019-05-21 14:12:26 · 754 阅读 · 0 评论 -
KVO 两种方式支持属性改变通知发送
Two techniques Ensuring the Changing Notification Emitted 官方文档 There are two techniques for ensuring the change notifications are emitted. Automatic Change Notification NSObject provides a basic im...翻译 2019-05-21 18:00:44 · 141 阅读 · 0 评论 -
KVO 实现细节或原理
Key-Value Observing Implementation Details Automatic key-value observing is implemented using a technique called isa-swizzling. 自动 KVO 实现使用 isa-swizzling 技术 When an observer is registered for an at...翻译 2019-05-21 20:05:31 · 119 阅读 · 0 评论 -
KVO 容易发生哪些奔溃
KVO 容易发生哪些奔溃 重复 removeObserver 导致奔溃; 观察者从内存释放前,没有 removeObserver,导致野指针访问奔溃; keyPath 传错导致的奔溃,如 valueForKeyPath:。 ...原创 2019-05-21 20:12:01 · 219 阅读 · 0 评论