消息中心和观察者:NSNotificationCenter
原作:http://blog.csdn.net/henry_sea/article/details/6758740




修正:
- //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.//返回值被用来作为系统的发送消息的中心,可以说使用这个,你得到了一个消息控制室

浙公网安备 33010602011771号