[NSNotificationCenter defaultCenter] addObserver 时 object的意义。
来源:互联网 发布:淘宝有卖烟的吗 编辑:程序博客网 时间:2024/06/05 14:42
[[NSNotificationCenterdefaultCenter]addObserver:self
selector:@selector(notePushRediectController:)
name:nPushRediectController
object:nil];//这个object对应下面方法中的anObject,如果设置了需要对应起来才能触发。
// - (void)postNotificationName:(NSString *)aName object:(id)anObject userInfo:(NSDictionary *)aUserInfo;
- (void)postNotificationName:(NSString *)aName object:(id)anObject //anObject表示发送者。注册的地方可以设定指定的发送者,只有当notification来自指定的发送者的时候才会触发。
0 0
- [NSNotificationCenter defaultCenter] addObserver 时 object的意义。
- [[NSNotificationCenterdefaultCenter] addObserver时object的意义
- 别错误使用 [NSNotificationCenter defaultCenter] 的 object
- iOS: NSNotificationCenter的方法addObserver:selector:name:object:
- iOS: NSNotificationCenter的方法defaultCenter
- NSNotificationCenter defaultCenter
- 关于[[NSNotificationCenter defaultCenter] addObserver不remove后续又收到通知crash问题
- NSNotificationCenter defaultCenter 通知的简单实用
- NSNotificationCenter defaultCenter笔记
- objective-c NSNotificationCenter,addObserver
- NSNotificationCenter 中的addObserver和addObserverForName的释放问题。
- KVO 和 NSNotificationcenter addObserver 和removeObserve成对出现的原因
- NSNotificationCenter 中的addObserver和addObserverForName的释放问题。
- [NSNotificationCenter defaultCenter]全局监听传数值
- [NSNotificationCenter defaultCenter] 通知接收不全面原因
- IOS通知中心(观察者模式)[NSNotificationCenter defaultCenter]
- iOS: NSNotificationCenter的方法postNotificationName:object:
- iOS: NSNotificationCenter的方法postNotificationName:object:userInfo:
- EXCEL学习笔记——小技巧
- 数据结构 表达式求值
- UIScrolView里自己滚动滑动 ,无限制那种
- Ubuntu14.04 安装Cuda
- 一个卓有成效的汇编优化范例--使用SSE2指令优化进制转化
- [NSNotificationCenter defaultCenter] addObserver 时 object的意义。
- leetcode 091 —— Decode Ways
- 花生壳不能添加映射怎么办
- ios 基础1 数据类型占位符
- 程序是怎么运行起来的
- 初识Kafka:构架、生产消费模型以及其他相关概念
- nyoj-58 最少步数(DFS)
- HTML5实践 -- 三步实现响应式设计
- Windows代码页