摘要: KVO键值观察机制,就是MVC中Model变化的时候通知View更新,使用该机制避免了胶水代码,即在任何数据更新的地方都得写更新UI的更新代码。 具体系统系统:NSObject,NSArray,NSSet三种KVO机制,API如下@interface NSObject(NSKeyValueObserverRegistration)/* Register or deregister as an observer of the value at a key path relative to the receiver. The options determine what is included i 阅读全文
posted @ 2013-04-13 13:09 金建彤 阅读(315) 评论(0) 推荐(0) 编辑