现在的位置: 首页 > 综合 > 正文

消息中心和观察者:NSNotificationCenter

2013年05月13日 ⁄ 综合 ⁄ 共 295字 ⁄ 字号 评论关闭

修正:

//addObserver:selector:name:object:
//中的最后一个参数是指观察者想接受哪个通知者的消息,第一个参数是zhi作为观察者的类.

defaultCenter
Returns the task’s default notification center.//程序的默认消息通知中心
+ (id)defaultCenter
Return Value
The current task’s default notification center, which is used for system notifications.//返回值被用来作为系统的发送消息的中心,可以说使用这个,你得到了一个消息控制室

抱歉!评论已关闭.