One finger restriction on UIView

2019-07-30 07:19发布

问题:

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;