CCnotificationCenter 通知
来源:互联网 发布:福州市人口数据 编辑:程序博客网 时间:2024/05/16 08:20
1
//发送事件
02
CCNotificationCenter::sharedNotificationCenter()->postNotification(CLICK_TEST_MSG, (CCObject*)data);
03
04
//监听事件
05
void
GameManager::initListener()
06
{
07
CCNotificationCenter::sharedNotificationCenter()->addObserver(
this
, callfuncO_selector(GameManager::onClickTest), CLICK_TEST_MSG, NULL);
08
}
09
10
//处理事件
11
void
GameManager::onClickTest(CCObject* obj)
12
{
13
CCMessageBox(
"onClickTest"
,
"Title"
);
14
15
//移除监听事件
16
CCNotificationCenter::sharedNotificationCenter()->removeObserver(
this
, CLICK_TEST_MSG);
17
}
0 0
- CCnotificationCenter 通知
- Cocos2d-x CCNotificationCenter 通知中心
- cocos2d-x CCNotificationCenter 通知中心
- Cocos2d-x CCNotificationCenter 通知中心
- Cocos2d-x CCNotificationCenter 通知中心
- Cocos2d-x CCNotificationCenter 通知中心
- AnchorPoint锚点 + CCNotificationCenter 通知中心 + 截屏
- CCNotificationCenter
- CCNotificationCenter
- Cocos2d-x CCNotificationCenter 通知中心 自定义消息事件
- 利用消息通知中心CCNotificationCenter来传递不同层之间的数据
- cocos2d CCNotificationCenter
- CCNotificationCenter的用法
- CCNotificationCenter处理消息事件
- CCNotificationCenter的使用
- Cocos2d-x CCNotificationCenter
- CCNotificationCenter事件监听器
- cocos2dx 事件响应机制 CCNotificationCenter
- cocos2dx 常见的32种切换场景的动画
- action 动画
- schdule
- CCArray
- CCACTION
- CCnotificationCenter 通知
- NSString,NSArray 方法
- CCSprite动态换图片
- Cocos2dx---------------- TinyXml 解析 XML(推荐使用rapidxml)
- cocos2dx 精灵点击事件
- cocos2dx CCSprite操作
- IOS 画图
- IOS 截图
- IOS block
原创粉丝点击
热门IT博客
热门问题
老师的惩罚
人脸识别
我在镇武司摸鱼那些年
重生之率土为王
我在大康的咸鱼生活
盘龙之生命进化
天生仙种
凡人之先天五行
春回大明朝
姑娘不必设防,我是瞎子
邯郸285医院怎么样
邯郸学院成人教育
邯郸永年住宿
邯郸职业教育
河北邯郸特产
邯郸银行招聘
邯郸上海大众4s店
邯郸旅游团购
邯郸代驾公司
邯郸市永年区
邯郸有几个区
永年找工作
临漳工作招聘信息
亿搜
handan
handin
邯钢
邯钢集团
邯钢招聘
邯钢物流系统
河钢邯钢职工网上练兵系统
邯钢宾馆地址
北京邯钢宾馆
邰
邰怎么读
邰喜德
邰和贸易
邱
邱意浓图片
邱意浓照片
大邱庄
邱拼音
邱意浓个人资料
邱怎么读
邱惠芳
邱意浓比基尼
邱的拼音
霍邱网
邱水平
邱医生减肥食谱
邱勇简历