防止同时触摸多个按钮 [英] Preventing multiple buttons from being touched at the same time

查看:108
本文介绍了防止同时触摸多个按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在iOS中,无论如何都要防止同时触摸包含多个按钮(兄弟姐妹)的UIView?例如,两个并排的非重叠按钮可以通过两次触摸同时点击。

In iOS is there anyway to prevent a UIView containing multiple buttons (siblings) from being simultaneously from being touched? For instance, two non-overlapping buttons that are side by side can be tapped at the same time with two touches.

推荐答案

设置UIView.exclusiveTouch。

Set UIView.exclusiveTouch.

这篇关于防止同时触摸多个按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆