标签:
这几天遇到了各种坑....
各种控件名字问题....
bool CLevelLayer::onAssignCCBMemberVariable(cocos2d::CCObject * pTarget, const char * pMemberVariableName, cocos2d::CCNode * pNode){
CCLOG("===%s === %d",pMemberVariableName, strcmp(pMemberVariableName, "控件命名"));
return NULL;
}
如果打印 ===控件命名=== 0
就代表着关联成功.....如果是 1 代表不成功
标签:
原文地址:http://www.cnblogs.com/H-K-Home/p/4981552.html