使用 UIAccessibility 画外音不断刷新 iOS 屏幕

发布于 2025-01-05 15:48:03 字数 189 浏览 1 评论 0原文

我有一个 iOS 应用程序,我想让它可供访问。一切都很顺利,但在某些屏幕中,画外音失去焦点并跳转到第一个可访问的元素。就像屏幕总是刷新一样。我使用过 UIAccessibilityInspector 并且观察到时不时地不断有 ScreenChanged 通知。这真的很烦人,因为我不知道为什么会发送这些通知以及如何停止/控制它们。

谢谢, 亚历克斯

I have an iOS app and I want to make it accessible. Everything goes well but in some screens the voice over loses it's focus and jumps to the first accessible element. It's like the screen is always refreshing. I have used UIAccessibilityInspector and I observed that there are ScreenChanged notifications constantly, from time to time. It's really annoying because I don't know why are those notifications sent and how do I stop/control them.

Thanks,
Alex

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小伙你站住 2025-01-12 15:48:03

我遇到了类似的问题,发现它是由 UIPageControl 和我设置的自动循环该控件中的页面的计时器引起的。由于某种原因,由此引起的滚动将 UIAccessibility 重置为视图中的第一个元素,就像您所说的那样。检查并查看是否有任何动画或状态更改。

I had a similar problem and found that it was caused by a UIPageControl and a timer that I set up to automatically cycle the pages in that control. For some reason, the scrolling caused by that was resetting UIAccessibility to the first element in the view, just like you said. Check and see if you have anything animating or changing state.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文