且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

iOS - 检测屏幕上有多个手指

更新时间:2021-11-20 06:58:47

在touchesBegan,touchesMoved和touchesEnded方法中,一个参数是event,它是一个UIEvent对象。屏幕上的手指数是[[event allTouches] count]。

In the touchesBegan, touchesMoved, and touchesEnded methods, one parameter is event, which is a UIEvent object. The number of fingers on the screen is [[event allTouches]count].

将无效。]