- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
如果标签上的文本发生变化,是否可以使用 iPhone 上的 VoiceOver 来宣布更新后的文本?
这类似于 ARIA 中的实时区域。
谢谢。
最佳答案
您可以使用 VoiceOver 朗读您喜欢的任何文本:
UIAccessibilityPostNotification(UIAccessibilityAnnouncementNotification, @"Your text");
如果标签应在更新后立即公布其文本,只需扩展 UILabel
并重写 setText
方法即可。
.h 文件:
@interface UIVoicedLabel : UILabel {
}
@end
及其实现:
#import "UIVoicedLabel.h"
@implementation UIVoicedLabel
- (void) setText:(NSString *)text {
// Set the text by calling the base class method.
[super setText:text];
// Announce the new text.
UIAccessibilityPostNotification(UIAccessibilityAnnouncementNotification, text);
}
@end
这对我来说非常有效:)
关于iPhone - 让 VoiceOver 宣布标签文本更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5520238/
能否解释一下proclaim、declaim和declare这三个符号的区别? 最佳答案 它们是 symbols , 不是 keywords . proclaim命名为function使全局化 dec
我正在尝试使现有应用程序尽可能易于访问以进行语音传输。 目前,我有一个 uiviewcontroller,它基本上是一个分页照片 View ,在 uiscrollView (tourScrollVie
选择 UITableViewCell 时,画外音会宣布“已选择”,我不希望画外音说“已选择”。我怎样才能做到这一点? 我尝试过但没有成功的事情: 更改了单元格 accessibilityHint 和
我正在测试一个带有 TalkBack 的 Android 应用程序,“LIST”这个词被宣布为“Fifty first”。显然,TalkBack 假设大写字母“LI”是罗马数字 51。 我无法访问源代
假设 你在 github 上 fork 了一个项目 多人(少于 5 人)正在使用这个 fork 目标是对我们的更改提出 pull 请求 在对我们的分支进行几次提交之后,我们现在想要将我们的分支更新为源
我是一名优秀的程序员,十分优秀!