NSNotification与KVO的区别
来源:互联网 发布:数据仓库软件 编辑:程序博客网 时间:2024/05/20 05:57
个人认为主要有3点区别:
1. NSNotification由NSNotificationCenter进行统一管理,包括创建并发送通知、注册监听者、移除监听者等;
2. 如果是自定义的NSNotification,必须自己进行通知的发送,系统定义的不需要,而KVO都不需要;
3. KVO主要用来观察对象属性的变化,使用面较为窄,而NSNotification能观察更加丰富的内容。
个人就知道这几点,有不对的地方,希望大家批评指正。
0 0
- NSNotification与KVO的区别
- NSNotification 与 KVO 的区别?
- KVO和NSNotification的区别
- NSNotification和KVO的区别
- NSNotification、delegate和KVO的区别
- NSNotification、delegate和KVO的区别
- NSNotification、delegate和KVO的区别
- NSNotification、delegate和KVO的区别
- NSNotification、delegate和KVO的区别
- NSNotification、delegate和KVO的区别
- NSNotification、delegate和KVO的区别
- NSNotification、delegate和KVO的区别
- NSNotification、delegate和KVO的区别
- NSNotification、delegate和KVO的区别
- NSNotification、delegate和KVO的区别
- NSNotification、delegate和KVO的区别
- NSNotification、delegate和KVO的区别
- NSNotification、delegate和KVO的区别
- Sublime Text2 使用及插件配置
- 解压还原ramdisk.img
- sqoop从mysql中导入数据到mysql遇到的问题
- Android常用的api调用接口
- Android Activities 文档专题
- NSNotification与KVO的区别
- USB入门系列之二 —— USB的连接模型【转】
- HDU 1243 DP
- IP查询接口
- QML Image获取图片资源路径的细节
- 黑马程序员——注释,变量。第二天学习笔记,总结
- zambj tjykq rtlkz
- Android 通过Annotation(注解方式)实现IOC,设置点击事件,初始化View
- spider-定向抓取