1.添加一个观察者
NotificationCenter::getInstance()->addobserver(this,callfuncO_selector(ClassName::method),"message",nullptr);
2.广播消息
NotificationCenter::getInstance()->postNotification("message",this);