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
2 answers

iOS accessibility - button focussed

There are 3 buttons in my app, when voice over is turned on and the user swipes to the right, the next button is selected. Note - The button accessibility focus is different from button pressed. Reason for asking - I want the app to announce "AAA"…
user1046037
  • 16,755
  • 12
  • 92
  • 138
0
votes
1 answer

UITableViewCell AccessoryType accessibility hint?

I've a UITableViewCell with the accessoryType set to be UITableViewCellAccessoryDetailDisclosureButton. This displays the chevron and the info button. When i check the accessibility inspector on the simulator, this has an accessibiityHint of "More…
0
votes
1 answer

UIButton accessibilityLabel on selection?

Simple one: is there a way to get a UIButton to read a specific accessibility message after it has been pushed? It’s a toggle, it has a label/hint for before it’s pushed, but after the user interacts with it, I’d like it to audibly confirm that it…
Luke
  • 9,512
  • 15
  • 82
  • 146
0
votes
1 answer

UIAccessbility reading same label two times when tapped

I have a view in storyboard and it has a label. I have enabled accessibility from "Identity Inspector" in Xcode. Problem is voiceover is reading the label text two times when tapped once. I don't have any code, its just simple label in…
Paragon
  • 982
  • 2
  • 10
  • 37
0
votes
1 answer

Handling voice over accessibility standard gestures

I am trying to handle the touch to explore and one finger slide gestures when in the voice over mode, for my scroll view that has multiple buttons. I am implementing the UIAccessibilityFocus accessibilityElementDidBecomeFocused protocol to update my…
flex007
  • 143
  • 1
  • 4
  • 10
0
votes
1 answer

Accessibility Notification gets overridden

i am working on a iOS application with accessibility support. At some point in my application flow, i present an alert view. After presenting the view, i want to focus on the view using UIAccessibilityPostNotification, however the notification seems…
Dynamite
  • 341
  • 2
  • 5
  • 17
0
votes
2 answers

iOS VoiceOver – implement “x of y” read-out in a standard UIView?

Using VoiceOver in iOS, when looking at something like a segmented controller, VoiceOver reads the segments and their index, i.e. “Selected: Something: 2 of 4”. I have a custom UIView container which holds a few buttons, and I’d like to replicate…
Luke
  • 9,512
  • 15
  • 82
  • 146
0
votes
1 answer

Let Switch Control users trigger an action with a switch press

I have a switch control device "Ablenet (BLUE 2)" and I would like to control my application using the switch device. My application is a paged (horizondal pages) news reader application and I would like the switch device to control the news pages…
CodeWeed
  • 971
  • 2
  • 21
  • 40
0
votes
0 answers

UIAccessibility - Read all the labels and buttons on the screen from top to down

When view shows up only first label is being read, how can i make the app to read all the labels present on the screen without touching the screen so user can know what options are available? Thanks
Paragon
  • 982
  • 2
  • 10
  • 37
0
votes
2 answers

UIAccessibilityElement callbacks not being called

I have a class which subclasses UIAccessibilityElement for the purposes of enabling accessibility in my Cocos2D app. At run time, the instances of this class are all navigable via iOS' accessibility features and this is great, but I have a specific…
PKCLsoft
  • 1,359
  • 2
  • 26
  • 35
0
votes
1 answer

UIAccessibility turn of/on voice objective-c

Anybody know if it is possible to turn on/off accessibility (voice-over) in code? I'm programming apps for blind people and in one instance we need to quickly toggle the on/off for the accessiblity voice over. Apple Docs don't mention if this is…
Soleiro
  • 11
  • 1
0
votes
1 answer

Proper way to calculate time for an accessibility label that updates when a UISlider value is changed?

So I am using UISlider for an Audio Player's scrubber. What I am attempting to do is update a label whenever a UISlider's value is changed so that it can properly display the current audio's time elapsed in minutes and seconds. Here is my current…
3254523
  • 3,016
  • 7
  • 29
  • 43
0
votes
1 answer

How to implement a draggable scrubber like Podcast app when VoiceOver is running?

Apple's Podcast app has an interesting feature available when VoiceOver is running. When a user double taps and holds the scrubber, dragging left or right adjusts the scrubber position . How is this done? I've made my attempts at allowing direct…
3254523
  • 3,016
  • 7
  • 29
  • 43
0
votes
0 answers

How to fix VoiceOver swiping behavior after stopping and restarting the app, iPhone only?

I have a universal app on which VoiceOver is behaving strangely, but only on the iPhone. When I delete the app and reinstall on either iPhone or iPad, VoiceOver works as expected and everything is fine. But on iPhone, if I stop the app and then…
MusiGenesis
  • 74,184
  • 40
  • 190
  • 334
0
votes
1 answer

How do I change the primary Accessibility element in a new ViewController?

I am implementing VoiceOver accessibility in my iOS App pikSpeak which helps blind people to locate iOS different buttons on the screen. When I open a new ViewController the first button that Siri announces is the one on the top-left-most corner.…
rahulg
  • 2,183
  • 3
  • 33
  • 47