NSNotificationCenter(通知中心)
 【注意】需再dealloc中移除观察者
 获取通知中心单例对象
 NSNotificationCenter *center=[NSNotificationCenter defaultCenter];
常用方法:
      1.注册观察者
 - (void)addObserver:(id)observer selector:(SEL)aSelector name:(NSString *)aName object:(id)anObject;
 参数:
 observer: 观察者
 aSelector: 收到通知会自动调用此方法
           aName: 消息内容(接收通知的"暗号")
 anObject: 一般为nil
  2.发送通知消息
 - (void)postNotificationName:(NSString *)aName object:(id)anObject userInfo:(NSDictionary *)aUserInfo;
 参数:
 aName: 谁注册了通知中心,观察者模式设置这个消息内容,便通知谁
 anObject: 传送的参数(任意对象)
 aUserInfo: 传送的字典 
  NSNotification(若被通知者调用的方法中带有参数,则传递此对象过来)
  常用方法:
 1.获取传递的参数
 - (id)object;
  2.获取传递的字典
 - (NSDictionary *)userInfo;