问题描述
我在一个应用程序中有一个要求,当用户从主屏幕以外的任何其他屏幕进行四指捏合时,他将被带到特定应用程序的主页.但四指捏合手势是 Apple 将应用置于后台的默认手势.
I have a requirement in an app, where the user will be taken to the homepage of the particular app when he does a four finger pinch from any other screen apart from the home screen. But the four finger pinch gesture is Apple's default gesture to put the app in the background.
有什么特别的方法可以克服这个手势吗?另外,如果我超过了这个手势,它会被允许在 AppStore 中使用吗?
Is there any particular way we can over ride this gesture? Also if I over ride the gesture, will it be allowed in the AppStore?
任何帮助将不胜感激.
推荐答案
参见 Apple 的人机界面指南:
适当地支持手势
避免将不同的操作与用户知道的标准手势相关联.例如,请注意避免重新定义显示通知中心的从顶部向下滑动"手势的含义.
Avoid associating different actions with the standard gestures users know. For example, take care to avoid redefining the meaning of the "swipe down from the top" gesture that reveals Notification Center.
覆盖操作系统级别的手势是破坏可用性和让用户不满意的好方法.可以使用自定义 UIGestureRecognizer
覆盖 4 指捏合,但这违反了 Apple 的可用性标准.
Overriding a OS-level gesture is a good way to break usability and create an unhappy user. It may be possible to override the 4-finger pinch with a custom UIGestureRecognizer
, but this is in violation of Apple's usability standards.
这篇关于过骑四/五指捏手势?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!