ios - 通过外部点击 + VoiceOver 模式关闭 iOS 表单模式
<p><p>在 iPad 上,您可以使用 <code>controller.modalPresentationStyle = UIModalPresentationFormSheet</code> 在屏幕上显示居中的模式。一种常见的技术是允许用户通过单击“外部”或“后面”来关闭模式。许多其他答案(<a href="https://stackoverflow.com/questions/2623417/iphone-sdk-dismissing-modal-viewcontrollers-on-ipad-by-clicking-outside-of-it/6180584" rel="noreferrer noopener nofollow">Iphone SDK dismissing Modal ViewControllers on ipad by clicking outside of it</a>,
<a href="https://stackoverflow.com/questions/9102497/dismiss-modal-view-form-sheet-controller-on-outside-tap" rel="noreferrer noopener nofollow">Dismiss modal view form sheet controller on outside tap</a> ),通常通过向 View 的 UIWindow 添加轻击手势。</p>
<p>我的问题是,如何让 VoiceOver 模式下的用户可以访问它? native 操作表允许在工作表外单击以关闭,甚至提示用户说“双击以关闭弹出窗口”。如何以相同的方式公开 UIWindow 轻击手势?</p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>来自苹果:</p>
<p> <a href="https://support.apple.com/guide/iphone/learn-voiceover-gestures-iph3e2e2281/ios" rel="noreferrer noopener nofollow">https://support.apple.com/guide/iphone/learn-voiceover-gestures-iph3e2e2281/ios</a> </p>
<blockquote>
<p>Dismiss an alert or return to the previous screen: Two-finger scrub
(move two fingers back and forth three times quickly, making a “z”).</p>
</blockquote>
<p>如果模式表打开,我们可以提示用户“做一个 z 手势”返回。</p></p>
<p style="font-size: 20px;">关于ios - 通过外部点击 + VoiceOver 模式关闭 iOS 表单模式,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/50939262/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/50939262/
</a>
</p>
页:
[1]