iOS SDK停止多点触控功能 [英] ios sdk stop multitouch functionality

查看:125
本文介绍了iOS SDK停止多点触控功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有多个按钮,如果用户触摸2个或更多按钮并同时释放,我只想给出一个按钮的动作.

I have multiple buttons, if user touches 2 or more buttons and releases simultaneously, I want to give the action of just one button.

我该怎么做. 预先感谢您的帮助..

How can I do that. Thanks in advance for your help..

推荐答案

将所有按钮的exclusiveTouch属性设置为yes.如果那不起作用,则可能需要在用户点击特定按钮时禁用所有其他按钮,并在完成特定操作后将其启用.

Set exclusiveTouch property for all buttons to yes. If that is not working, you might have to disable all other buttons when the user is tapping on a particular button and enable it once that particular action is completed.

这篇关于iOS SDK停止多点触控功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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