概述
在这个文档中,我们将讨论2个不相关的或者彼此之间不知道对方id的对象是如何通信的.所有的例子都是基于Objective-C的,这篇文章的关注点是Iphone开发.这个手册对那些在iphone开发和想要提高软件的易用性,扩展性的人将非常有用.


下面,我们将讨论具体的项目细节(

 

同时在dealloc方法,将observer从notification center中移除

- (void)dealloc

{

    [self setEmployees:nil];

    NSNotificationCenter *nc = [NSNotificationCenter defaultCenter];

    [nc removeObserver:self];

    [super dealloc];

}

相关文章:

  • 2021-11-10
  • 2021-09-13
  • 2022-03-10
  • 2022-01-24
  • 2022-12-23
  • 2021-09-23
  • 2021-11-24
猜你喜欢
  • 2021-11-08
  • 2022-12-23
  • 2021-11-07
  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案