Note: This series of articles translates from iOS Developer library–> Cocoa Core Competencies
The Cocoa core competencies, as the name implies, is Cocoa key concept. Just a description of each part of the concept, more detailed study, see the relevant links provided in each section.
The translator's level is limited, inevitably has the various problems, welcome to correct the exchange.
Welcome reprint, Reproduced please indicate the source: Colin
Accessibility
Accessible apps can be used by everyone, regardless of their limitations or disabilities. By the making your app accessible, you can reach broader and expand your user base.
易于理解/使用的App可以让任何人使用, 不拘于他们的限制(短处)或者伤残。使你的App易于使用, 你可以获取更广阔的市场以及扩大你的用户群。
Your users do not necessarily has the same abilities as you. Consider your app ' s user experience from the perspective of someone with a seeing, hearing, interacting, or learning Impai Rment. Is your app still operable if someone with one of the these impairments tries to use it?
你的用户不一定和你有相同的能力。 从一个人的视力障碍,听力障碍,交流障碍, 学习障碍等角度来考虑你的App的用户体验。如果某个有以上障的人试图使用你的App, 那么它是否仍然是可运行/操作的?
Apple has did the majority of the work on the system level to make your apps accessible-by providing features like screen Zoom, visual alerts, Assistivetouch, and Guided access-but there are more than you can do as a developer to enhance the Accessib Ility of your app.
wheninandandAccess
Working with VoiceOver
The primary and IOS apps present information is through a graphical user interface (GUI) Icular attention to visual accessibility. Blind and Low-vision users interact with your apps using VoiceOver, a screen-reading technology built into the operating sy Stem that speaks your app ' s user interface aloud. VoiceOver users use special gestures or keyboard commands to explore and control the GUI. Standard Inputs-such as mouse movements and finger Swipes-are translated by voiceover to move the voiceover cursor, which Reads an element ' s accessibility information.
OS X和iOS应用程序呈现信息的主要方式是通过一个图形用户界面( GUI ),所以你需要特别注意视觉可访问性/易于操作。 盲和低视力的用户与应用程序交互使用VoiceOver,屏幕阅读技术构建到操作系统,使得大声地朗读你的应用程序的用户界面。 VoiceOver用户使用特殊的手势或键盘命令来探索和控制GUI。 标准的输入如鼠标移动和手指点击由VoiceOver转换来移动VoiceOver光标,(光标)它读取一个元素的可理解信息。
VoiceOver helps low-vision users navigate the GUI by interpreting touches differently
VoiceOver通过对触碰不同的解释来帮助低视力用户导航GUI
The standard UI is elements provided by AppKit and UIKit is accessible to VoiceOver by default. You are need to provide a description for the visual UI elements such as images or icons that don ' t already has the text Associa Ted with them. You can change a element ' s accessibility description and other default accessibility Behavior-such as the role of a elem ENT, or whether VoiceOver should read the element-directly in Interface Builder.
AppKit和UIKit提供的标准UI元素是VoiceOver默认可理解的。你只需要为视觉UI元素,像或者没有文本的图标提供一个描述。你可以改变一个元素的易理解描述和其他默认的易理解行为-比如一个元素的作用,或VoiceOver是否应该读直接在界面构建器(Interface Builder)上的元素。
Custom UI elements and views, on the other hand, must conform to the Nsaccessibility or uiaccessibility protocol so t Hey can describe themselves to VoiceOver to be read aloud. These is the same protocols that standard controls in AppKit and UIKit adopt. By adopting these protocols and implementing their methods, your provide VoiceOver the information it needs to make your CU Stom UI elements accessible.
自定义UI元素和视图,从另一个方面来讲,必须符合 NSAccessibility 或 UIAccessibility 协议,这样他们可以把自己描述给VoiceOver以便大声朗读。 这些都是相同的协议,它是AppKit和UIKit中采用的标准控制。 采用这些协议和实现他们的方法,你提供VoiceOver它所需要的信息去定制UI元素。
The best-of-the-confirm-your app works well with voiceover are to interact with your app using VoiceOver. Enable VoiceOver on IOS in Settings > General > Accessibility and on OS X in System Preferences > Accessibility ( or hit Command-f5). VoiceOver is a sophisticated tool, but it's only takes a few minutes to learn the basics. Navigate through your user interface using VoiceOver to make sure all your features is accessible and all of your UI Elem Ents has appropriate descriptions. Verify that your app promotes a positive accessibility experience by following the advice in testing the accessibility of Your iPhone application.
theof Your iPhone Application中的建议。
Related articles
Internationalization
Definitive Discussion
Accessibility Programming Guide for IOS
Sample Code Projects
Imagemapexample
Cocoa Core competencies_1_accessibility