NSNotificationCenter简单使用
来源:互联网 发布:手机海外电视直播软件 编辑:程序博客网 时间:2024/05/19 06:37
1,添加监听 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(action:) name:@"A" object:nil];
2,发送通知,[[NSNotificationCenter defaultCenter] postNotificationName:@"A" object:nil];
3,执行方法
- (void)action:(NSNotification *)notification
}
}
0 0
- NSNotificationCenter 的简单使用
- NSNotificationCenter简单使用
- NSNotificationCenter的简单使用总结
- ios NSNotificationCenter 的简单使用
- iOS NSNotificationCenter的简单使用
- 一个简单的NSNotificationCenter使用
- NSNotificationCenter 用法 一个简单的使用 NSNotificationCenter 的代码例子
- iOS中NSNotificationCenter的简单使用
- NSNotificationCenter使用
- NSNotificationCenter使用
- NSNotificationCenter使用
- NSNotificationCenter使用
- iOS监听模式系列之NSNotificationCenter的简单使用
- 简单介绍下NSNotificationCenter
- 简单介绍下NSNotificationCenter
- NSNotificationCenter的简单应用
- 简单介绍NSNotificationCenter
- NSNotificationCenter的简单应用
- vftpd
- Url encode和decode 相关问题
- 气质是这样养成的
- JVM的配置参数
- [从头学数学] 第151节 二次函数 小结与复习题
- NSNotificationCenter简单使用
- Java8特性之接口的默认方法与静态方法
- Android5.0以上使用MediaProjection截图和录屏
- HID攻击之TEENSY实战
- C++,cout和std::cout的区别
- MYSQL数据库管理之权限管理
- 华为笔试题
- 【手游】梦幻西游手游 美术资源加密分析
- 经典算法——hihocoder#1014 : Trie树(字典树)