Menu
  • HOME
  • TAGS

How to get the selected element of the iOS Voiceover

ios,iphone,swift,apple,voiceover

Maybe check out UIAccessibilityFocus? https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIAccessibilityFocus_Protocol/index.html...

UIAccessibility and Apple Pay voice-over interaction issue

ios,voiceover,uiaccessibility,applepay

You can restore focus to the alert by issuing a well-timed UIAccessibilityPostNotification(), passing UIAccessibilityScreenChangedNotification and the element to be focused. However, that's a hack to work around the details of how VoiceOver focuses on your app after returning from an out-of-process view controller. Please consider filing a bug report so...

Add text to speak before announcing label's text

ios,uilabel,voiceover

Override the accessibilityLabel property in the UILabel subclass to return whatever you'd like. override var accessibilityLabel: String! { get { return "my text here" + "," + self.text! } set { } } You may want to post an announcement each time the text changes to inform VO users the...

Prevent VoiceOver from focusing on an object automatically

ios,focus,uipageviewcontroller,voiceover,uiaccessibility

If you want to provide a custom scroll status announcement, implement -accessibilityScrollStatusForScrollView: to provide accessibility clients with a scroll status string. If -accessibilityScroll: is overridden, instead post an UIAccessibilityPageScrolledNotification. If you'd like to sequence announcements, register for UIAccessibilityAnnouncementDidFinishNotification and post your screen change notification from within the notification handler. Note...

Dismiss a UIKeyboardTypeNumberPad in a UITextField when VoiceOver is active?

ios,uitextfield,voiceover,uikeyboardtype

You need an alternative way to perform the gesture. You'll have to add a button to your layout. Sorry... You should be able to check whether VoiceOver is on or not. BOOL UIAccessibilityIsVoiceOverRunning(); You could also consider adding a tap recognizer to an invisible UI Element or a parent View...

Prevent voice over (Accessibility) from announcing UITableViewCell as selected

ios,uitableview,accessibility,voiceover,uiaccessibility

The only work around is prevent cell selection - (NSIndexPath *)tableView:(UITableView *)tableView willSelectRowAtIndexPath:(NSIndexPath *)indexPath; { return nil; } Add a Tap gesture on the cell and when the cell is tapped, do the what ever you want in cell selection inside the tap gesture....

Enable VoiceOver on the view and it subviews

ios,objective-c,accessibility,subview,voiceover

You should look into subclassing the UIAccessibilityContainer protocol. I believe this is what you want. Create a custom accessibility container that is the parent for all of the things that you want. You then have more fine grained control over how your super view, and it's children, get reported to...

Completely prevent interaction with UICollectionView

ios,uicollectionview,accessibility,voiceover

Looks like accessibilityElementsHidden is the property you want; should be able to set this to YES on the UICollectionView to hide that subtree. From docs: You might use this property to hide views that are covered by the arrival of a new view. In this case, the hidden views might...

How do you exclude a UIButton from VoiceOver?

ios,uibutton,voiceover

Try the following: someButton.isAccessibilityElement = NO; This tells the button that it isn't an accessible element. This should prevent voice-over from stopping at the button....

How to fix UITableView Accessibility speak in wrong languge while scrolling?

ios,iphone,accessibility,voiceover,uiaccessibility

I found the solution. In xcode, in project settings, Info tab, there is a Localization section. And there was no Polish localization, becouse we didn't localized app (app only in Polish). I click +, add Polish localization, and now it say "Rows %d to %d of %d" totally in Polish....

UIAccessibilityContainer in child view controllers?

ios,uiviewcontroller,accessibility,voiceover,uiaccessibility

Yes, that is correct, what UIAccessibilityContainer is doing is telling VoiceOver that that element is the innermost element from an accessibility perspective. Can you give a bit more context as to what you are trying to do from a UI perspective, there might be a better way to achieve this...

How can I make an HTML input element in a WAI-ARIA tree accessible to VoiceOver in Safari?

html,safari,accessibility,wai-aria,voiceover

According to Apple Accessibility, this is a bug. I guess I did nothing wrong and that I'll just have to wait for a fix. The bug is in WebKit, an open-source layout engine used by Safari. A bug report can be found here....

VoiceOver says 'collapsed all the time

accessibility,screen-readers,voiceover

Appears to be a bug with recent releases of Chrome; repros as of 40.0.2214.91 (Jan 2015), and IIRC, was not an issue with the previous version - this was working fine until some recent browser update. Repros even with very simple examples: <a href="/">test link</a> ...gets read out as "collapsed...

How to change accessibilityLabel of section index titles for a table view?

ios,uitableview,accessibility,voiceover

You set accessibilityLabel directly on the NSString you are returning from sectionIndexTitlesForTableView:. I.e.: - (NSArray *)sectionIndexTitlesForTableView:(id)tableView { NSString *one = "1"; one.accessibilityLabel = @"First"; ... return @[one, ...]; } This was discussed in "Accessibility for iOS" session in WWDC 2012 as an advanced trick (feels rather like an Easter Egg...

Prevent VoiceOver from navigating other pages of UICollectionView

ios,uiscrollview,uicollectionview,voiceover,uiaccessibility

I wasn't able to find a solution to prevent VoiceOver from navigating to other pages, but I was able to address the cause of the problem which is a better solution. In collectionView:numberOfItemsInSection: check to see if there should only be one page and if so then run an algorithm...

What is the meaning of 'role','title','alt' in DOJO Mobile

javascript,mobile,dojo,voiceover,dojox.mobile

For title: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/title Contains a text representing advisory information related to the element it belongs to. Such information can typically, but not necessarily, be presented to the user as a tooltip. for Alt: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes Alternative text in case an image can't be displayed. For role, it is about Aria role....

Override VoiceOver message in UITextField - iOS Accessibilty

ios,accessibility,voiceover,uiaccessibility

You should set the accessibility label to describe the text field (as if it was a key) and the accessibility value for its value. textField.accessibilityLabel = NSLocalizedString(@"Price", nil); // textField.accessibilityValue = @"£24 per month"; textField.accessibilityValue = [self transformedPrice:textField.text]; -transformedPrice: should do whatever operation to transform the actual text in your...

WAI-ARIA HTML. How to force 2 divs to be read out as one?

html,accessibility,wai-aria,voiceover

First let me say that you really don't need to do this. Screen reader users are used to dealing with HTML structure like this and can get around it easily. However, if you want to do this: Create an offscreen style. .offscreen { border: 0; clip: rect(0 0 0 0);...

Seeking advice for “dual mode” for increment/decrement of control with UIAccessibilityTraitAdjustable

ios,voiceover,uiaccessibility

UIAccessibilityTraitAdjustable uses a fixed, developer-defined increment size. You can adjust the slider with a larger step size in -accessibilityIncrement if you think users will find it tedious to adjust the control one unit at a time. VoiceOver users desiring finer control can use the pass-through gesture (double tap and hold)...

How to set the Voice Over accessibility label for UIPickerView rows?

ios,uipickerview,voiceover

If you are implementing the pickerView:viewForRow:forComponent:reusingView: method of UIPickerViewDelegate as the way to populate the UIPickerView components, you can achieve custom accessibility label for each row by setting accessibilityLabel on the UIView you are returning from that method. Note that I wasn't successful at making VoiceOver read custom accessibility label...