Search code examples
iphonecocos2d-iphone

Is there any event trigger after releasing the button press for MenuItemImage in cocos2d?


I am working on a cocos2d iPhone app and want to capture the event after releasing the button press. Will there be any event or notification triggered after releasing the button click. I know when clicking a button we will get notified based on the selector function provided, but after click is finished and releasing the button press, can we get any event notification using any built-in handler? The item being clicked is a MenuItemImage.

Thanks and appreciate if you could share your thoughts on this.


Solution

  • By button I assume you mean a UIButton.

    You listen to the "button release" event with UIControlEventTouchUpInside.