touchesBegan没有通过UI按钮调用

时间:2013-03-13 23:04:01

标签: ios cocoa-touch uibutton touches

没有通过我的UIButton调用touchBegan方法。我想要UIButton和touchesBegan方法分享触摸。那可能吗? 现在,当我点击按钮时,只调用了按钮方法,它似乎“覆盖”了触摸方法。

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
 // not called over button
}

您如何启用这两种方法?

0 个答案:

没有答案
相关问题