[[NSNotificationCenterdefaultCenter] addObserver时object的意义
来源:互联网 发布:北京淘宝店托管 编辑:程序博客网 时间:2024/06/15 20:06
[[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
- [[NSNotificationCenterdefaultCenter] addObserver时object的意义
- [NSNotificationCenter defaultCenter] addObserver 时 object的意义。
- iOS: NSNotificationCenter的方法addObserver:selector:name:object:
- addObserver
- addObserver与removeObserver不是一对一对称的
- addObserver和postNotification函数传递函数的区别
- 一句话理解ref object的意义
- iphone 消息处理事件 postNotificationName和addObserver的调用
- iphone 消息处理事件 postNotificationName和addObserver的调用
- NSNotificationCenter 中的addObserver和addObserverForName的释放问题。
- KVO 和 NSNotificationcenter addObserver 和removeObserve成对出现的原因
- NSNotificationCenter 中的addObserver和addObserverForName的释放问题。
- NSMutableArray的监听问题及解决方案:[<__NSArrayM 0x4e17fd0 addObserver:forKeyPath:options:context] is not suppo
- Object.toString()返回字符串的意义:对象名+@+对象内存地址?
- Object.toString()返回字符串的意义:对象名+@+对象内存地址?
- Object.toString()返回字符串的意义:对象名+@+对象内存地址?
- objective-c NSNotificationCenter,addObserver
- 的意义
- AIDL注意事项
- 17.笔记go语言——表单
- map< string,set<lin_no> >
- NameError: the name CVM is not defined
- 18.笔记go语言——访问数据库
- [[NSNotificationCenterdefaultCenter] addObserver时object的意义
- 08:矩阵加法
- UVa11093 例题9-13 环形跑道
- Spring构造注入
- pandas get_dummies的使用方法
- 19.笔记go语言——使用Mysql驱动
- 第四周 项目四 建设双链表算法库(选做)
- 【算法系列】—插入排序
- 20.笔记go语言——使用LiteIDE