如何在iPad上禁用4个手指手势? [英] How to disable 4 finger gestures on iPad?

查看:1249
本文介绍了如何在iPad上禁用4个手指手势?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在iOS 4.3上测试iPad,默认情况下使用4个手指(向上/向下)手势来切换应用程序。这会干扰我正在使用的屏幕钢琴键盘,并且想要在键盘框架内移除此手势。键盘不使用手势,但它会定期中断输入(例如,当有多点触控输入时)。

I'm testing an iPad on iOS 4.3, which by default uses 4 finger (up/down) gestures to switch out of apps. This interferes with an on-screen piano keyboard I'm using, however, and want to remove this gesture within the frame of the keyboard. The keyboard does not use the gesture, but it regularly disrupts input (for example, when there is multi-touch input).

推荐答案

检测这种情况的一种方法是,如果该人意外地执行了4次(NSSet *)触及事件,您将立即获得 4次触摸取消手指轻扫,并且 5次触摸取消如果此人抓住了5个手指。

One way to detect this is you will get 4 touchesCancelled at once in a single (NSSet *)touches event if the person accidentally did the 4 finger swipe, and 5 touchesCancelled if the person did the 5 finger grab.

此时您可以在应用中显示一个对话框,一旦他切换回应用程序,告诉用户如何关闭多任务处理手势。

At that point you can display a dialog box in your app, telling the user how to turn off the multitasking gestures, once he switches back to the app.

这篇关于如何在iPad上禁用4个手指手势?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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