iOS可访问性:标签与提示 [英] iOS accessibility: label vs hint

查看:116
本文介绍了iOS可访问性:标签与提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我试图使控件可访问,label和hint属性之间有什么区别?而且,特质是做什么的?如果我填写它们,VoiceOver是否会说出所有这些属性?

What is the difference between the "label" and "hint" property if I'm trying to make a control accessible? Moreover, what do the "traits" do? Are all of these properties spoken by VoiceOver if I fill them in?

推荐答案

这些都在Apple的辅助功能编程指南

This is all described in Apple's Accessibility Programming Guide.

但这是我对你的问题的随机看法:

But here's my random take on your question:

我会尝试从有视觉的人如何使用你的应用程序的角度来考虑可访问性属性。

I would try to think of the accessibility properties in terms of how a sighted person would use your app.

他们会查看显示内容并查看内容。

They would look at the display and see stuff.

按钮可能有一个简短的标题,例如停止。滑块可能附近标签上写着音量。这是视力障碍者可能希望在控件的标签属性中找到的东西类型。

A button might have a short title, such as "Stop". A slider might have a nearby label saying "Volume". That's the type of stuff that a sight impaired person might like to find in the control's label property.

有视力的人会通过它的形状和装饰识别标准按钮或滑块。但视力受损的人可能对这种形状没有任何线索。这就是那些无法看到某个东西看起来像按钮的人应该进入traits属性的信息类型。 按钮。

A sighted person would recognize a standard button or slider by it's shape and decoration. But a vision impaired person might have no clue about that shape. So that's the type of information that should go in the traits property for someone who can't see whether something looks like a button. "button".

如果你的应用程序有一个简短的帮助文档,它可能会显示你的应用程序的图片,箭头指向元素,还有一个小泡泡每个箭头上的标题都说停止播放恼人的放屁声和将屁声从静音改为耳朵破碎的粗略。这些将是您有用的提示。

If you had a short help document for your app, it might show a picture of your app, with arrows pointing at the elements, and a small bubble caption on each of those arrows saying stuff like "Stops playing annoying fart sounds" and "Changes fart loudness from silent to ear shatteringly gross". These would be your helpful "hints".

特征和提示是可选的,就像App商店中的某些应用程序没有帮助文档和奇怪的无法识别形状的按钮一样。但每个可见或主动控制元素都应该有一个标签。

Traits and hints are optional, just as some apps in the App store have no help documentation, and weird unrecognizably shaped buttons. But every visible or active control element should have a label.

'zat help?

这篇关于iOS可访问性:标签与提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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