Questions tagged [uiaccessibility]

UIAccessibility is an informal protocol in UIKit that provides accessibility information about user interface elements. This information is used by VoiceOver and other assistive technologies to help users with disabilities interact with your application. All of the standard views and controls in UIKit implement UIAccessibility, so applications are accessible by default.

This tag is for any questions about making iOS apps more accessible to users via the UIAccessibility protocols.

By default, all objects that inherit from UIView adhere to this informal protocol. In fact, for many views with a low level of customization, iOS is clever enough to set the accessibility attributes automatically. For higher levels of customization, though, the following fields can be set manually (from the Apple docs):

  • Label. A short, localized word or phrase that succinctly describes the control or view, but does not identify the element’s type. Examples are “Add” or “Play.”
  • Traits. A combination of one or more individual traits, each of which describes a single aspect of an element’s state, behavior, or usage. For example, an element that behaves like a keyboard key and that is currently selected can be characterized by the combination of the Keyboard Key and Selected traits.
  • Hint. A brief, localized phrase that describes the results of an action on an element. Examples are “Adds a title” or “Opens the shopping list.”
  • Frame. The frame of the element in screen coordinates, which is given by the CGRect structure that specifies an element’s screen location and size.
  • Value. The current value of an element, when the value is not represented by the label. For example, the label for a slider might be “Speed,” but its current value might be “50%.”

When a VoiceOver user taps a view (or a Switch Control user scans over it), that view's properties are read out loud. These properties also help to determine how VoiceOver and Switch Control facilitate user interaction.

For more information, See the official Apple documentation here: Accessibility Programming Guide

546 questions
0
votes
1 answer

UIAccessibility is not selecting correct elements

I have several UIWindows in my app. Some UIWindows have very high window levels. i.e. window.windowLevel = currentWindowLevel+1; For some reason when turning on accessibility support, the system insists on reading out the accessibility labels of…
Avba
  • 14,822
  • 20
  • 92
  • 192
0
votes
1 answer

UIAccessibility in gridView - doesn't see new cells

In my project I have tableView, as a row there is a custom UITableViewCell, that has one of it property - GMGridView (its similar to a UICollectionView), it has its delegate methods: - (GMGridViewCell *)GMGridView:(GMGridView *)gridView…
Melany
  • 466
  • 7
  • 20
0
votes
1 answer

JAWS + IE11 + aria-live message read multiple times

Jaws reading aria-live message multiple times. We are using angularjs. Html code as below,

{{model.txtErrorMessage}}

Once error message on screen it started…
user3249448
  • 1,369
  • 2
  • 14
  • 34
0
votes
1 answer

UITableViewCell with multiple labels read as a whole, possible to separate?

I've a cell that has different labels and images. Now when accessibility is on the voice reads all the labels from left to bottom. Is it somehow possible that the user can click on the different labels in the cell so that the voice over reads only…
user1007522
  • 7,858
  • 17
  • 69
  • 113
0
votes
1 answer

VoiceOver accessibility focus on a series of elements

Say I have a dialog box like this: and I want to focus on title, then body and then each button one after another. I am able to focus on body using UIAccessibilityPostNotification(UIAccessibilityScreenChangedNotification, dialog.bodyLabel); but…
Yar
  • 7,020
  • 11
  • 49
  • 69
0
votes
0 answers

Is it possible to detect UIAccessibility notifications in my app like VoiceOver does?

I want my IOS app to be able to log UI actions (touching on views). I thought about using UIAccessibility notifications. Is it possible to detect these notifications inside my app like VoiceOver does? Sorry for my bad english
D. Sergeev
  • 2,285
  • 1
  • 13
  • 16
0
votes
1 answer

How to make ui-grid column header keyboard navigatable?

For doing some accessibility issues, I need the ui-grid column headers to be keyboard navigatable.
Aliti
  • 2,025
  • 2
  • 27
  • 39
0
votes
3 answers

Accesibility for UITableView doesn't work

I'm writing some UITests in XCode/Swift for an app. In this app I have a UITableView with some cells (off course) but for the tests, this tableview behaves as if it was…
mtet88
  • 524
  • 6
  • 21
0
votes
1 answer

How can I hide an (hidden) NSView from the accessibility tree?

I am using hidden NSButtons in my OS X app to provide keyboard shortcuts. How can I hide these views from the accessibility tree? I have tried this: button.accessibilityElement = NO; button.accessibilityEnabled = NO; button.accessibilityLabel =…
RealCasually
  • 3,593
  • 3
  • 27
  • 34
0
votes
0 answers

Accessibility (VO) does not scroll past after certain row

I've implemented a collectionView in a tableView cell in one my (Swift) projects where each UITableViewCell contains a UICollectionView and each collectionView then has UICollectionViewCell's. And my collectionView cell is again customized in a…
0
votes
1 answer

How to tell voice over to read the full name of a state in iOS?

I have a label with the text "Berkeley, CA" and I want its voice over to read "Berkeley, California". I noticed that when I have labels with zip code as well, such as "San Francisco, CA 94106" the voice over knows to convert CA to California…
Tal Haham
  • 1,500
  • 12
  • 16
0
votes
3 answers

AppleScript: How to activate menu items that only appear with option-down key (w/o shortcut)

I really looked up and down lots of questions, here and at "AskDifferent", but could not find a valid answer to this fundamental question: HOW do you "activate" programatically a menu item that's only visible when the option key is depressed and…
clemsam lang
  • 440
  • 3
  • 11
0
votes
1 answer

Custom message in accessibility

Below is the code snippet for radio button. Requirement is screen reader should read it like a “For an insurance cover of $75,000, the monthly premium is $29.80. Radio button.”
chandru
  • 157
  • 1
  • 2
  • 14
0
votes
1 answer

Dynamically Change isAccessibilityElement

I've got a bit of a weird situation. I need to have an element not be read out by VoiceOver when I use the 2 finger swipe method, but to be read when tapping on it still. The object is part of a TableView cell, and I've given the TableView cell its…
Bill L
  • 2,576
  • 4
  • 28
  • 55
0
votes
1 answer

React-Native: how to detect assistive technology and user preferences

We need to detect if a person is using VoiceOver, Switch Control, TalkBack, or Switch Access to display alternate buttons on our swipe-dependent application. Normally we'd look for UIAccessibilityIsVoiceOverRunning, AccessibilityManager, and other…