- #pragma mark 注册更新界面通知
- - (void)registerUpdateUINotification
- {
- [[NSNotificationCenter defaultCenter] addObserver:self
- selector:@selector(handleUpdateUINotification:)
- name:KPNCUpdateUINotification
- object:nil];
- }
- ///////////////////////////////////////////////////////////////////////////////////////////////////
- - (void)removeUpdateUINotification
- {
- [[NSNotificationCenter defaultCenter] removeObserver:self
- name:KPNCUpdateUINotification
- object:nil];
- }
- ///////////////////////////////////////////////////////////////////////////////////////////////////
- - (void)handleUpdateUINotification:(NSNotification *)notification
- {
- [self refreshProfile];
- }
- //该片段来自于http://www.codesnippet.cn/detail/0906201512833.html
来源: http://www.codesnippet.cn/detail/0906201512833.html