这几天遇到了各种坑....
各种控件名字问题....
bool CLevelLayer::onAssignCCBMemberVariable(cocos2d::CCObject * pTarget, const char * pMemberVariableName, cocos2d::CCNode * pNode){
CCLOG("===%s === %d",pMemberVariableName, strcmp(pMemberVariableName, "控件命名"));
return NULL;
}
如果打印 ===控件命名=== 0
就代表着关联成功.....如果是 1 代表不成功
时间: 2024-10-15 02:30:45