Hi,
I want to show a ccmenusprite with some different-2 menus background image by .plist file.
CCSpriteFrameCache cacheCommon = CCSpriteFrameCache::sharedSpriteFrameCache;
cacheCommon->addSpriteFramesWithFile; //its a common plist file for all menus background.
CCSpriteframe = CCSprite::spriteWithSpriteFrame(cacheCommon->spriteFrameByName(“sound_down.png”)); //this is a sound menu bg image of setting.plist file.
CCMenuItemSprite *soundON = CCMenuItemSprite::itemFromNormalSprite(frame, frame);
but the app is crashed bcoz initWithSprite have assert(pSpriteFrame != NULL);
any one can help me. thanks in advance.