Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Yea i tried it but it works when i touch somewhere else on screen , but not when i press and release CCMenu button. Commented Jun 25, 2012 at 16:29
  • check CCMenuItemFont *item1 = [CCMenuItemFont itemFromString: @"icon.png" target:self selector:@selector(doit)]; ,, Commented Jun 25, 2012 at 16:33
  • I oversaw that, sorry... I think that @SentineL gave you the right answer... you need to override the standard behavior of cocos2d buttons to handle the "touchUp" event... Commented Jun 25, 2012 at 16:37