iOS开发之NSNotificationCenter(通知)的使用方法
2012-12-10 10:11
477 查看
iOS软件开发的时候会遇到这种情况:打开APP后会在后台运行某个方法,例如下载文件,下载完成后可能需要调用某个方法来刷新界面,这时候可能没法在下载的函数中回调。NSNotificationCenter(通知)是一个很好的选择。
通知使用起来非常的简单:
1. 定义将要调用的方法:
2. 定义通知:
3. 调用通知:
通知使用起来非常的简单:
1. 定义将要调用的方法:
相关文章推荐
- iOS开发之:NSNotificationCenter(通知)的使用方法
- iOS开发之NSNotificationCenter(通知)的使用方法
- iOS开发之NSNotificationCenter(通知)使用介绍
- iPhone开发之NSNotificationCenter(通知)的使用方法
- 【转载】iPhone开发之NSNotificationCenter(通知)的使用方法
- iPhone开发之NSNotificationCenter(通知)的使用方法
- iPhone开发之NSNotificationCenter(通知)的使用方法
- iPhone开发之NSNotificationCenter(通知)的使用方法
- iOS开发-进阶:NSNotificationCenter 使用姿势详解
- iOS开发之NSNotificationCenter的使用
- iOS开发 NSNotificationCenter 通知的使用方法
- IOS开发数据传递机制之NSNotificationCenter
- iOS本地通知(NSLocalNotification)的使用
- iOS监听模式系列之NSNotificationCenter的简单使用
- iOS 开发--NSMutableArray使用枚举方法
- iOS监听模式系列之NSNotificationCenter的简单使用
- iOS开发之NSNotificationCenter详解
- 【深入浅出ios开发】NSNotificationCenter
- 【IPhone开发】NSNotificationCenter观察者模式给主线程发送通知
- iOS: NSNotificationCenter的方法removeObserver: