快速使用 NSNotificationCenter iOS通知
来源:互联网 发布:高中英语在线听力软件 编辑:程序博客网 时间:2024/05/22 12:10
//创建一个消息
[[NSNotificationCenterdefaultCenter]addObserver:selfselector:@selector(notice:)name:@"123"object:nil];
//发送消息
[[NSNotificationCenterdefaultCenter]postNotificationName:@"123"object:niluserInfo:nil];
-(void)notice:(id)userInfo{
NSLog(@"zylmm");
// userInfo等于post 过来的userInfo
}
// 通知多对多(随便玩,能实现好多东西。别忘记移除通知), 可以创建多个同名通知 可以多个页面post一个通知(这句多余)
1 0
- 快速使用 NSNotificationCenter iOS通知
- iOS通知NSNotificationCenter的使用
- ios NSNotificationCenter通知的使用
- iOS使用NSNotificationCenter通知崩溃
- IOS中通知中心(NSNotificationCenter)的使用
- IOS中通知中心(NSNotificationCenter)的使用
- iOS--通知的使用(NSNotificationCenter )
- iOS中通知的使用NSNotificationCenter
- iOS之NSNotificationCenter通知中心使用事项
- iOS 通知中心(NSNotificationCenter)的使用
- iOS开发之NSNotificationCenter(通知)使用介绍
- iOS 键盘通知(NSNotificationCenter)正确使用
- iOS中通知的使用NSNotificationCenter
- iOS开发:NSNotificationCenter,通知中心的使用
- IOS 之 通知NSNotificationCenter
- IOS NSNotificationCenter 通知中心
- IOS NSNotificationCenter 通知中心
- iOS通知中心(NSNotificationCenter)
- opencart安装vqmod步骤
- unity中播放视频(PC端和移动端)
- html 常用标签
- 保存图片到本项目data/data下,实现简易照片隐藏功能
- Android源码--Settings之Preference布局的详解
- 快速使用 NSNotificationCenter iOS通知
- 导包错误,提示with root cause
- DOM4j读取XML文件(SAXReader)
- 详解使用pscp命令Linux文件上传与下载
- SpringBoot中的一些注解总结
- 硬盘分区
- Angular4.0开发笔记--01
- 第二本书unit2
- 大盗阿福