消息中心和观察者:NSNotificationCenter

原作:http://blog.csdn.net/henry_sea/article/details/6758740

 

 

 

修正:

 

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

 

 

 

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

 

 

posted @ 2013-03-06 20:10  天已界  阅读(84)  评论(0)    收藏  举报