3

没有通过我的 UIButton 调用 touchBegan 方法。我希望 UIButton 和 touchesBegan 方法都可以共享触摸。那可能吗?现在,当我单击按钮时,仅调用了按钮方法,并且似乎“覆盖”了 touches 方法。

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

您将如何启用这两种方法?

4

0 回答 0