Cocos2d iphone 如何使CCMenuItemImage在触摸按(而不是触摸释放)时调用选择器

Cocos2d iphone 如何使CCMenuItemImage在触摸按(而不是触摸释放)时调用选择器,cocos2d-iphone,Cocos2d Iphone,按下该图像的触摸按钮释放该图像后,该图像将调用选择器 但是,是否不可能使其在触摸按下时立即调用选择器?这是为了在菜单中创建更快的效果。子类CCMenuItemImage并处理事件 -(void) selected{ // do you thing : for example you could have a target:selector pair of // properties added in your implementation. [super selecte

按下该图像的触摸按钮释放该图像后,该图像将调用选择器


但是,是否不可能使其在触摸按下时立即调用选择器?这是为了在菜单中创建更快的效果。

子类CCMenuItemImage并处理事件

-(void) selected{
    // do you thing : for example you could have a target:selector pair of 
    // properties added in your implementation.
    [super selected];
}
我使用它来检测长时间触摸并弹出上下文工具提示窗口(例如)