iOS通知
2014-03-22 16:51
197 查看
/*注册通知*/
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(refreshData) name:@"notificationnName"
object:nil];
/*通知接收*/
NSNotification *notification = [NSNotification notificationWithName:@"notificationnName"
object:nil userInfo:nil];
[[NSNotificationCenter defaultCenter] postNotification:notification];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(refreshData) name:@"notificationnName"
object:nil];
/*通知接收*/
NSNotification *notification = [NSNotification notificationWithName:@"notificationnName"
object:nil userInfo:nil];
[[NSNotificationCenter defaultCenter] postNotification:notification];
相关文章推荐
- iOS中的通知机制
- ios开发-通知传值
- iOS APP关闭推送通知后的消息处理逻辑
- iOS 页面间几种传值方式(属性,代理,block,单例,通知)
- iOS 学会使用通知(notification)
- iOS下的通知使用
- 实现类似 iOS 5 推送通知效果的代码例子
- IOS: iPhone键盘通知与键盘定制
- 推送通知(远程推送)(服务器PushMeBaby)(iOS SDK)(JPush)
- ios键盘通知和自定义键盘
- ios 把已经点击过的UILocalNotification 从系统的通知中心现实中移除
- iOS开发---本地通知(UILocalNotification)
- iOS开发-推送通知服务(1)
- iOS Notification(本地通知)
- iOS推送角标与通知栏变化总结
- iOS之点击通知栏的通知进入程序的触发事件
- iOS 远程推送通知
- iOS海哥开发笔记 (海哥原创,iOS 通知NSNotificationCenter)
- ios如何实现推送通知
- iOS 一一 通知机制