iOS: NSNotificationCenter的方法removeObserver:
2013-07-19 10:53
363 查看
- (void)removeObserver:(id)notificationObserver
example:
[[NSNotificationCenter defaultCenter]removeObserver: self];
[[self fintTextView]removeObserver: self forKeyPath: @"backgroundColor"];
[scrollView removeObserver: self forKeyPath: @"scaleFactor"];
[[scrollView verticalScroller] removeObserver: self forKeyPath: @"scrollerstyle"];
[NSApp removeObserver: self forKeyPath: @"mainWindow.windowController.document"];
example:
[[NSNotificationCenter defaultCenter]removeObserver: self];
[[self fintTextView]removeObserver: self forKeyPath: @"backgroundColor"];
[scrollView removeObserver: self forKeyPath: @"scaleFactor"];
[[scrollView verticalScroller] removeObserver: self forKeyPath: @"scrollerstyle"];
[NSApp removeObserver: self forKeyPath: @"mainWindow.windowController.document"];
相关文章推荐
- iOS开发之NSNotificationCenter(通知)的使用方法
- iOS开发之:NSNotificationCenter(通知)的使用方法
- iOS开发之NSNotificationCenter(通知)的使用方法
- iPhone开发之NSNotificationCenter(通知)的使用方法
- xcode反汇编调试iOS模拟器程序(四)自动断点应用之NSNotificationCenter
- iPhone开发之NSNotificationCenter(通知)的使用方法
- iOS: NSNotificationCenter的方法removeObserver:name:object:
- ios学习笔记:NSNotificationCenter 的详细说明 --
- iOS学习笔记6-关于NSNotificationCenter及同步异步
- 【深入浅出ios开发】NSNotificationCenter
- IOS疯狂基础之NSNotificationCenter消息注册与撤销
- iPhone开发之NSNotificationCenter(通知)的使用方法
- iOS开发之NSNotificationCenter的使用
- iOS: NSMutableArray的方法removeObjectAtIndex:
- iOS开发之NSNotificationCenter(通知)使用介绍
- iOS与Android对比学之NSNotificationCenter
- IOS学习之NSNotificationCenter消息机制
- iOS学习之NSNotificationCenter
- IOS注意之NSNotificationCenter
- 【深入浅出ios开发】NSNotificationCenter