uiaccessibility

VoiceOver: how to implement button that behaves like keys in Calculator

瘦欲@ 提交于 2019-12-08 06:22:39
问题 When you focus on a digit key in the Calculator app when using VoiceOver (either by tapping it once, sliding a finger over it, or by swiping left/right to it), VoiceOver announces the button title. Then if you "activate" the button by double tapping, it presses the button and VoiceOver announces the character that was inserted into the Calculator display with a higher pitch than the button title announcement. My question is: how can I get the same behavior for buttons in my app - repeat the

Set accessibilityIdentifier on custom table section header view for UIAutomation

谁都会走 提交于 2019-12-06 09:19:20
How does one set an accessibility identifier on a custom section header view in a UITableView? For background, since logging the element tree of a table view inside UIAutomation produces a flat list of table cells (UIATableCell instances) intermingled with table group elements (UIATableGroup), being able to identify groups makes it easier to identify the cells that belong to those groups (since they are returned in order). If I set an accessibilityIdentifier explicitly on a custom view that gets returned as a section header view, I can confirm that the accessibilityIdentifier property is

How to disable accessibility for custom static UITableViewCell

北慕城南 提交于 2019-12-06 05:50:42
问题 I have a storyboard containing a UITableViewController with static content. The cells are very simple, containing just a single UILabel . If I now want to disable accessibility on one of the cells, I simply uncheck the mark on the label. This works as expected. However if I now create an empty subclass of UITableViewCell and use this as the cell class for my static cell, accessibility will be enabled, ignoring all settings. I tried overriding -isAccessibilityElement to return NO ,

Need to be able to change Font size across an entire application for accesibility

感情迁移 提交于 2019-12-04 18:18:32
I have built a GIS routing application, using WPF, MVVM, and Visual Studio 2015. When I test the app on a laptop, the fonts seem smaller than when I tested in debug mode on my pc. Is there a way to create a feature in my application settings so a user could increase the size of all of the fonts, globally, without affecting the graphics? I was hoping this would be similar to a webpage design with the 'ctrl +'. Any help would be greatly appreciated. I've added similar functionality to my application using ViewBox. Note, it doesn't change the font size, but instead "zooms" all aspects of the user

How to disable accessibility for custom static UITableViewCell

我怕爱的太早我们不能终老 提交于 2019-12-04 10:50:32
I have a storyboard containing a UITableViewController with static content. The cells are very simple, containing just a single UILabel . If I now want to disable accessibility on one of the cells, I simply uncheck the mark on the label. This works as expected. However if I now create an empty subclass of UITableViewCell and use this as the cell class for my static cell, accessibility will be enabled, ignoring all settings. I tried overriding -isAccessibilityElement to return NO , programmatically setting all child views accessibilityElement property to NO , but it still will be selectable

Is there any way to have VoiceOver read a label on command?

江枫思渺然 提交于 2019-12-04 05:17:01
I'd like to have my QR code scanning app inform the user when it finds a QR code. For sighted users, this works using a label at the bottom that updates to notify the user. However, a blind user would have to tap on that label again to have it read by Voice Over. I would much prefer it to just read automatically. The closest I can find to this question is UIAccessibility - Read all the labels and buttons on the screen from top to down , which wasn't possible. While this doesn't bode well for my app, that was a year ago. Has Apple updated it's UIAccessibility protocol in any way to allow this?

Moving Accessibility Voiceover cursor focus to a specific element

无人久伴 提交于 2019-12-03 12:40:26
I'm having an issue with moving the voiceover cursor to a specific element on viewDidAppear. I followed Apple's guidelines for focusing on a specific element, in this case a dismiss button, but the cursor ends up elsewhere Here is my Code: - (void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; UIAccessibilityPostNotification(UIAccessibilityScreenChangedNotification, self.dismissButton); } Any help, ideas, would definitely be appreciated! thank you so much. If I remember correctly i was not able to reliably focus on elements on first of the view as VO will generally focus on the

How to add VoiceOver accessibility to an App's Icon Badge Number?

时光总嘲笑我的痴心妄想 提交于 2019-12-03 07:12:23
问题 Question: How do I add a custom VoiceOver accessibility Label or Hint to an App Icon Badge Number? For example , when the iOS Setting Accessibility > VoiceOver is turned On , VoiceOver reads aloud items touched on screen. For the App Store and Mail icons, the following is read out aloud: App Store icon, VoiceOver says: "App Store. 2 updates available . Double tap to open." Mail icon, VoiceOver says: "Mail. 1 unread message . Double tap to open." But , for the project I am working on, the

What's the difference between setAccessibilityLabel and accessibilityIdentifier in ios?

核能气质少年 提交于 2019-12-03 04:43:33
问题 I've been going through our code base and setting the accessibilityIdentifier property on all of our buttons and text fields so that I can access them using UIAutomation. While doing this, I came across some code that was already in place. [_goodButton setAccessibilityLabel:@"off"]; I can't find any documentation on what the differences are between these two methods. It looks like they do the same thing. Does anyone know? I find it peculiar that this label is set to "off" as well. 回答1:

iOS Voiceover status

人走茶凉 提交于 2019-12-03 04:02:22
问题 I am trying to add accessibility features to an iOS app that has already been developed. There are a couple of UI features (e.g. buttons) that I like them to show up if the VoiceOver option in the accessibility menu of the iPhone settings is on and do not show up if the voiceover is off. Is there a way to check whether the voiceover option is on or not? 回答1: BOOL UIAccessibilityIsVoiceOverRunning(); 回答2: In ViewDIdLoad [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector