在iOS上使用VoiceOver时如何获得当前关注的元素? [英] How do I get the currently focused element when using VoiceOver on iOS?

查看:66
本文介绍了在iOS上使用VoiceOver时如何获得当前关注的元素?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个表格,其中有用户可以滑动以将其标记为完成的单元格。我正在尝试通过实现accessibilityScroll方法来使用VoiceOver进行访问。

I have a table with cells that the user may swipe to mark them "completed". I am trying to make this accessible using VoiceOver by implementing the accessbilityScroll method.

这很好,但是当用户滚动时我无法弄清楚哪个单元格具有焦点。

This works fine, but I can't figure out what cell has focus when the user scrolls.

我只找到有关如何更改焦点的信息。

I only find information on how to change focus.

推荐答案

呵呵,好的。我只是想通了。

Hehe, Ok. I just figured it out.

有一个协议。名为 UIAccessibilityFocus

方法: accessibilityElementDidBecomeFocused:

嗯,我将离开这个问题在这里与其他为此奋斗的人。

Well, I will leave this question here to any one else that is out there struggling with this.

这篇关于在iOS上使用VoiceOver时如何获得当前关注的元素?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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