uiaccessibility

UIButton voice assistance on demand with VoiceOver enabled

大城市里の小女人 提交于 2019-12-11 10:34:34
问题 I would like to ask how to design voice over assistance on demand with VoiceOver enabled. I have such code to create UIButton: _myLocationButton = [UIButton buttonWithType:UIButtonTypeRoundedRect]; [_myLocationButton setImage:[UIImage imageNamed:@"my_location_icon"] forState:UIControlStateNormal]; _myLocationButton.accessibilityLabel = @"My location"; _myLocationButton.accessibilityHint = @"Double tap to hear where You are, in which zone or near zone and floor information in building"; [

Create a custom VoiceOver Rotor to navigate MKAnnotationViews?

别说谁变了你拦得住时间么 提交于 2019-12-11 04:56:18
问题 I plot several MKAnnotations on an MKMapView . I'd like VoiceOver users to be able to continue panning/zooming a map as they normally would, but I'd also like them to to be able to quickly and easily navigate through my MKAnnotations if they choose. I feel like a custom rotor is the perfect solution for this. 回答1: Self answering here, because I spent an insane amount of time getting this right, and figured someone else might need this. At the time I needed to develop this, there were hardly

UICollectionViewFlowLayout Voice Over reads items out of order with Flow Layout

别等时光非礼了梦想. 提交于 2019-12-11 03:59:59
问题 I have two questions regarding accessibility and UICollectionViews that I'm hoping to get some expert help with. The other question, regarding section headers, can be found here. I've created a sample project demonstrating both issues. I have a UICollectionView using UICollectionViewFlowLayout that contains items of variable height. UIFlowLayout centers the elements on each row vertically. Unfortunately, when Voice Over is enabled, it seems to favor elements that are placed higher vertically,

VoiceOver accessibility label for Touch ID

落花浮王杯 提交于 2019-12-10 21:56:28
问题 I am trying to ensure that the iOS app that I am working on is accessible and am trying to implement VoiceOver to ensure this. One strange thing that I cannot find any help for is when the Touch ID view is displayed (in my case for signing into the app). VoiceOver pronounces ID as a word and not I.D. I have tried implementing the accessibility attributes to both NSString and the LAContext object but neither seem to change what is read out by VoiceOver. Code snippets below: LAContext *context

Custom UITableview cell accessibility not working correctly

佐手、 提交于 2019-12-10 17:41:58
问题 I have a class which loads a tableview. In this tableview there are 4 sections with 1 row each. Each section row loads different custom cells. I have disabled the accessibility of the custom cells. But enabled the accessibility for the elements in the cell. With voice over ON, it reads each cell components correctly first. But after we scroll the table with three finger gesture, first or second cell in my table get focused and voice over does not read the elements inside the cell. Can any

DIV ARIA-LABEl not being read by JAWS

与世无争的帅哥 提交于 2019-12-10 16:38:35
问题 I have an angular2 application and I am binding some dynamic text to ARIA-LABEl for a nested DIV. But when I use the JAWS reader to locate DIVs on the page , it is not reading the assigned text.This is the text I am trying to read - attr.aria-label="Product details for {{productDetails?.ProductName}}" Also if I give assign a role of heading to this div, it reads the dynamic text but doesn't prefix "Product details for " before the text <div [ngClass]="getDescClass()" class="prdDetails-div"

Localized String with Interface Builder User Defined Runtime Attributes

折月煮酒 提交于 2019-12-10 13:32:46
问题 I am currently trying to create a localized accessibilityLabel in the storyboard (I am trying to avoid doing it programatically). It seems that whenever I use the Localized String option, the accessibilityLabels ends up being set to the localized string key that I have provided rather than the string itself. Does anyone have the solution to this problem? Any help would be greatly appreciated. 回答1: I guess you expect the localized string to be taken from Localizable.strings. The "Localized

How to have accessible swipe action for iCarousel

♀尐吖头ヾ 提交于 2019-12-10 11:58:33
问题 I am trying to make an accessible app. The problem arises when I wanted to have standard (Three-finger swipe right or left) behavior with iCarousel. Since iCarousel is not fully accessible by nature and it just lets user to have items be User intractable. I done some research, there are some workarounds but I also don't want to implement UIAccessibilityCustomAction cause this will not give the user easy to swipe ability. 回答1: You can override and implement accessibilityScroll(_:) method as:

Set accessibilityIdentifier on custom table section header view for UIAutomation

江枫思渺然 提交于 2019-12-10 11:25:29
问题 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

How do I support VoiceOver in UIPickerView on an iPad running an iPhone only app (non-universal)?

时光毁灭记忆、已成空白 提交于 2019-12-08 18:43:33
问题 Generally I look at Apple's UICatalog sample code for basic VoiceOver support however it looks like there is VoiceOver support for UIPickerViews in the sample code. Do I need to provide an accessibilityLabel method somewhere to add VoiceOver support? I tried to implement UIPickerViewAccessibilityDelegate methods but voice over only reads the labels in my picker view and not the hint to swipe up or down to change the values. Also my picker view is set to the input view of a UITextField. So I'm