UIView的一指限制 [英] One finger restriction on UIView

查看:51
本文介绍了UIView的一指限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如您所知,UIView可以检测多指.我只想将此功能限制在一根手指上. 我怎样才能做到这一点 ?我没有找到方法...

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

推荐答案

添加以下内容将在指定的视图中禁用多点触摸.

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

view.multipleTouchEnabled = NO;

这篇关于UIView的一指限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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