One finger restriction on UIView

▼魔方 西西 提交于 2019-12-24 11:27:40

问题


As you know an UIView can detect multi fingers. I just would like to restrict this functionality to one finger. How can I do that ? I didn't find a method ...


回答1:


Adding the following will disable multi-touch in the specified view.

view.multipleTouchEnabled = NO;



来源:https://stackoverflow.com/questions/9666063/one-finger-restriction-on-uiview

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