当存在单个 Tap UIGestureRecognizer 时,单击 UIButton 不起作用
我有一个基于视图的窗口,在视图上添加了单击UIGestureRecognizer
。然后,我添加了一个新的弹出窗口类型视图,我们将其命名为“弹出窗口视图”,在该视图上带有“UIButton”。
因此,现在当我单击 UIButton
时,它会调用单击 UIGestureRecognizer
操作,但我希望它进入 UIButton
方法。
基本上,结构是:
UIViewCintroller.view + 单击 UIGestureRecognizer
--->在顶部添加了(“Popover View”+ UIButton
)。
现在我希望它在单击 UIButton
和单击 UIGestureRecognizer
时执行某些操作。
但它只是调用单击 UIGestureRecognizer
方法。
谢谢。
I have a view based Window, on the view I added single tap UIGestureRecognizer
. I then added a new popover type view, which let's name "Popover view", on this view with a `UIButton' on it.
So now when I click on UIButton
, it calls the single tap UIGestureRecognizer
action, but I want it to go into UIButton
method.
Basically, the structure is:
UIViewCintroller.view + single tap UIGestureRecognizer
---> on top added (A "Popover View" + UIButton
on it).
Now I want it to do something when the UIButton
is clicked, and the single tap UIGestureRecognizer
.
But it is only calling the single tap UIGestureRecognizer
method.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论