dealloc

2016-02-19  本文已影响133人  spbreak

dealloc 方法在大多数情况下适用于删除已注册的代理或观察者对象

- (void) dealloc

{

    [[NSNotificationCenter defaultCenter] removeObserver:self];

}

非ARC

- (void) dealloc

{

    [super dealloc];

}

上一篇 下一篇

猜你喜欢

热点阅读