首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

NSNotificationCenter 的运用

2012-06-26 
NSNotificationCenter 的使用一般在 add?- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBund

NSNotificationCenter 的使用

一般在 add

?

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil;

?

- (id) initWithCoder:(NSCoder *)aDecoder;

?

- (id) init;?

?

?

- (void) dealloc;中 remove

?

?

传说:

Important:?The notification center does not retain its observers, therefore, you must ensure that you unregister observers (using removeObserver: or removeObserver:name:object:) before they are deallocated. (If you don't, you will generate a runtime error if the center sends a message to a freed object.)

?

但是没发现崩溃的问题

热点排行