Ios 触摸开始不会通过UIbutton调用

Ios 触摸开始不会通过UIbutton调用,ios,cocoa-touch,uibutton,touches,Ios,Cocoa Touch,Uibutton,Touches,没有通过我的UIButton调用TouchStart方法。我希望UIButton和touchesBegind方法都能共享触摸。可能吗? 现在,当我单击按钮时,只调用button方法,它似乎“覆盖”了Touchs方法 - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { // not called over button } 如何启用这两种方法?仅在有关IDE的问题中使用标记。谢谢

没有通过我的UIButton调用TouchStart方法。我希望UIButton和touchesBegind方法都能共享触摸。可能吗? 现在,当我单击按钮时,只调用button方法,它似乎“覆盖”了Touchs方法

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
 // not called over button
}
如何启用这两种方法?

仅在有关IDE的问题中使用标记。谢谢