uiaccessibility

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

末鹿安然 提交于 2019-12-02 21:59:56
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 VoiceOver read out is generic and not entirely helpful: My App icon, VoiceOver says: "My App. 123 new items

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

丶灬走出姿态 提交于 2019-12-02 17:52:11
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. Joshua Instead of using accessibilityLabel (see below) you should use accessibilityIdentifier . This github issue

VoiceOver Z gesture won't trigger when UIAlertController is active

ε祈祈猫儿з 提交于 2019-12-02 13:56:37
问题 I'm trying to use the Z gesture to dismiss a UIAlertController. I have a very simple app. It has a single view with 1 button. Tapping the button presents an alert. I have implemented - (BOOL)accessibilityPerformEscape { NSLog(@"Z gesture"); return YES; } With VoiceOver on, scrubbing the screen prints out "Z gesture," but when I press the button and the alert is visible, scrubbing the screen does nothing, the method is not called and nothing is printed. What do I have to do to get this to

VoiceOver Z gesture won't trigger when UIAlertController is active

99封情书 提交于 2019-12-02 08:03:50
I'm trying to use the Z gesture to dismiss a UIAlertController. I have a very simple app. It has a single view with 1 button. Tapping the button presents an alert. I have implemented - (BOOL)accessibilityPerformEscape { NSLog(@"Z gesture"); return YES; } With VoiceOver on, scrubbing the screen prints out "Z gesture," but when I press the button and the alert is visible, scrubbing the screen does nothing, the method is not called and nothing is printed. What do I have to do to get this to function while the alert is on screen? Thanks... To get the desired result on your alert view thanks to the

Weird UIAccessibility Crash On Ipad Mini 2

江枫思渺然 提交于 2019-12-02 01:47:41
问题 Our app used Crashlytics to track app crash. One really weird crash was logged in Crashlytics. It only happened when using ipad mini. I never experienced the issue when testing on iphone 6s and iphone 6s plus. UIAccessibility _copyMultipleAttributeValuesCallback The following is crashlytic log screenshot. 回答1: Anything prefixed with AX or _AX is most likely a private accessibility class as well as AXRuntime is mose likely an internal framework. This means, unfortunately, that there is

Performing UIAccessibilityCustomAction from UITests

徘徊边缘 提交于 2019-11-30 19:20:33
问题 I've got a subclass of UIView, let's say it's class DemoView: UIView { } which contains UILabel and UIButton. I needed to group it and add UIAccessibilityCustomAction so I've overriden the var accessibilityElements: [Any]? and used union to connect both elements. I've also assigned "Users" string to accessibilityLabel . From user perspective this works as it should, VoiceOver reads Users and then user can select custom action which is named Edit . Problem is that I don't know how can I fire

How to bind dynamic data to ARIA-LABEL?

[亡魂溺海] 提交于 2019-11-30 16:27:38
问题 I have dynamic text to bind to ARIA-LABEL on an html page. This is an angular 2 app. I am using something like this: aria-label="Product details for {{productDetails?.ProductName}}" But I get an error - Can't bind to 'aria-label' since it isn't a known property of 'div'. Is there any workaround for this? 回答1: Just use attr. before aria-label: attr.aria-label="Product details for {{productDetails?.ProductName}}" or [attr.aria-label]="'Product details for ' + productDetails?.ProductName"

Dynamic Accessibility Label for CALayer

拜拜、爱过 提交于 2019-11-30 16:00:16
How do I make a CALayer accessible? Specifically, I want the layer to be able to change its label on the fly, since it can change at any time. The official documentation's sample code does not really allow for this. The following assumes that you have a superview whose layers are all of class AccessableLayer , but if you have a more complex layout this scheme can be modified to handle that. In order to make a CALayer accessible, you need a parent view that implements the UIAccessibilityContainer methods. Here is one suggested way to do this. First, have each layer own its

voice over can only see a page of a uicollectionview

痞子三分冷 提交于 2019-11-30 12:28:07
问题 So i have a UICollectionView with a set of UICollectionViewCells displayed using a custom UILayout. I've configured the UILayout to lay out all the UICollectionViewCells almost exactly the same as how they are laid out in the photos app on ios. The problem is, it seems when voice over is turned on, and the user is traversing through the UICollectionViewCells using swipe, when the user gets to the last visible cell on the page, and tries to swipe forward to the next cell, it simply stops. I

voice over can only see a page of a uicollectionview

你离开我真会死。 提交于 2019-11-30 02:09:33
So i have a UICollectionView with a set of UICollectionViewCells displayed using a custom UILayout. I've configured the UILayout to lay out all the UICollectionViewCells almost exactly the same as how they are laid out in the photos app on ios. The problem is, it seems when voice over is turned on, and the user is traversing through the UICollectionViewCells using swipe, when the user gets to the last visible cell on the page, and tries to swipe forward to the next cell, it simply stops. I know that in UITableView the cells will just keep moving forward, and the table view will scroll down