
KVO
Ansel_m
阿里天猫
展开
-
KVO Considered Harmful
I would normally title this something more clever, but I want this post to be findable by people who are looking for exactly this. Thus, we stick to the convention. KVO, or key-value observing, is转载 2016-01-13 11:12:56 · 450 阅读 · 0 评论 -
KVO (Key-Value Observing) 实现机制
本篇会探究 KVO (Key-Value Observing) 实现机制,并去实践一番 - 利用 Runtime 自己动手去实现 KVO 。 KVO (Key-Value Observing) KVO 是 Objective-C 对观察者模式(Observer Pattern)的实现。也是 Cocoa Binding 的基础。当被观察对象的某个属性发生更改时,观察者对象会获得通知。转载 2016-01-13 11:06:50 · 559 阅读 · 0 评论