pGetGift1 = CCMenuItemSprite::itemFromNormalSprite(
CCSprite::spriteWithSpriteFrameName(1.png)
,CCSprite::spriteWithSpriteFrameName(2.png));
pGetGift2 = CCMenuItemSprite::itemFromNormalSprite(
CCSprite::spriteWithSpriteFrameName(3.png)
,CCSprite::spriteWithSpriteFrameName(4.png));
CCMenuItemToggle* toggle = CCMenuItemToggle::itemWithTarget( this,menu_selector(UiGameSet::callback), pGetGift1 ,pGetGift2 ,NULL);
程序报错会出现两种情况:
1、Cocos2d: cocos2d: removeChildByTag: child not found!
2、程序运行到第三行就出错,直接跳到main函数里的一行 int retVal = UIApplicationMain(argc,argv,nil, @“AppDelegate”);
这是啥原因啊,有谁遇到过?