键值监听
[person addObserver: forKeyPath ]
[person removeObserver: forKeyPath】
当监听的属性值发生改变,会调用下面方法:
-observeValueForKeyPath: ofObject...
键值监听
[person addObserver: forKeyPath ]
[person removeObserver: forKeyPath】
当监听的属性值发生改变,会调用下面方法:
-observeValueForKeyPath: ofObject...