OGeek|极客世界-中国程序员成长平台

标题: ios - 通过外部点击 + VoiceOver 模式关闭 iOS 表单模式 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-13 04:26
标题: ios - 通过外部点击 + VoiceOver 模式关闭 iOS 表单模式

在 iPad 上,您可以使用 controller.modalPresentationStyle = UIModalPresentationFormSheet 在屏幕上显示居中的模式。一种常见的技术是允许用户通过单击“外部”或“后面”来关闭模式。许多其他答案(Iphone SDK dismissing Modal ViewControllers on ipad by clicking outside of itDismiss modal view form sheet controller on outside tap ),通常通过向 View 的 UIWindow 添加轻击手势。

我的问题是,如何让 VoiceOver 模式下的用户可以访问它? native 操作表允许在工作表外单击以关闭,甚至提示用户说“双击以关闭弹出窗口”。如何以相同的方式公开 UIWindow 轻击手势?



Best Answer-推荐答案


来自苹果:

https://support.apple.com/guide/iphone/learn-voiceover-gestures-iph3e2e2281/ios

Dismiss an alert or return to the previous screen: Two-finger scrub (move two fingers back and forth three times quickly, making a “z”).

如果模式表打开,我们可以提示用户“做一个 z 手势”返回。

关于ios - 通过外部点击 + VoiceOver 模式关闭 iOS 表单模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50939262/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://sqlite.in/) Powered by Discuz! X3.4