ExclusiveTouch

Setting this property to true causes the receiver to block the delivery of touch events to other views in the same window. The default value of this property is false.

就是说如果两个view被同时点击,那么只有一个会得到相应。因为其他的同一个window中的touch事件都被block了。可以解决按钮事件同时被触发的问题。

下面是一些文章。
- ExclusiveTouch的设置与作用

- 【TIP】按钮事件同时触发的解决办法

然而无法解决同一个Button被连续点击的问题。。

posted on 2017-01-14 08:31  花老🐯  阅读(184)  评论(0编辑  收藏  举报

导航