ios sdk stop multitouch functionality

倾然丶 夕夏残阳落幕 提交于 2019-12-02 07:07:35

问题


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..


回答1:


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.




回答2:


Try setting your view's multipleTouchEnabled property to NO.



来源:https://stackoverflow.com/questions/13428439/ios-sdk-stop-multitouch-functionality

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!