ios开发 不同页面发送消息
来源:互联网 发布:java五角星代码 编辑:程序博客网 时间:2024/05/16 11:48
-(void)viewWillAppear:(BOOL)animated{ [super viewWillAppear:animated]; //注册观察者,接受消息并处理 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(refreshMachineList_fun:) name:@"refreshMachineList" object:nil];}-(void)refreshMachineList_fun:(NSNotification*)data{ NSLog(@"接收到消息");}
添加到发送消息的地方
<span style="font-size:24px;">[[NSNotificationCenter defaultCenter] postNotificationName:@"refreshMachineList" object:nil];</span>
0 0
- ios开发 不同页面发送消息
- ios发送消息 注册消息
- ios消息发送
- iOS 发送位置消息
- iOS开发本地通知(每天定点发送消息推送)
- 【iOS开发】iOS极光推送 点击推送消息跳转页面
- 微信第三方开发:处理消息和事件页面发送文字信息
- 不同页面的跳转-ios
- iOS开发 邮件发送
- IOS开发 短信发送
- Objective-C(六、消息发送机制,选择器和SEL类型)——iOS开发基础
- Objective-C(十九、通知-消息发送模式之一)——iOS开发基础
- iOS 开发 深入浅出Rumtime运行时之消息发送机制详解
- iOS 开发 深入浅出Runtime运行时之官方指南翻译--消息发送
- iOS开发-OC 中给 nil 发送消息会崩溃吗?为什么?
- iOS开发-消息推送
- EventBus主页面发送消息其他页面接收消息
- ios 发送http协议请求消息
- Linux命令 - Sed
- HDU 5445 Food Problem 两次多重背包
- AtomicInteger源码分析
- android 获取手机图片分享源码
- 第三方库的使用,不引入到项目中
- ios开发 不同页面发送消息
- ubuntu编译android6.0错误recipe for target 'out/host/linux-x86/obj/lib/libart.so' failed
- 网页点击热力图统计
- java web项目获取服务器IP,匹配一台机器做JOB
- Flexbox布局(1)
- Tomcat debug 模式
- 欢迎使用CSDN-markdown编辑器
- java中递归算法的理解
- android在主线程运行