this ConfirmMenu is
CCMenu * ConfirmMenu = CCMenu::menuWithItem(NULL);
ConfirmMenu~~>setPosition);
this~~>addChild(ConfirmMenu);
and then i use
CCTouchDispatcher::sharedDispatcher()->setPriority(kCCMenuTouchPriority, ConfirmMenu);
but it was
ConfirmMenu didn’t have touchHandler ?it like a null point ?was it? it only can wark when its parent is the currsecne?
same problem( …try changeing priority after touch
nobody?ai……Only go away the problem?
hi 欢 孙 ,
Try this one first call CCLayer::onEnter() .
CCLayer::onEnter();
CCMenu * ConfirmMenu = CCMenu::menuWithItem(NULL);
ConfirmMenu~~>setPosition);
this~~>addChild(ConfirmMenu);
CCDirector::sharedDirector()->getTouchDispatcher()->addTargetedDelegate(this, 0, false);