voiceover

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

How to read a UITextView paragraph by paragraph using VoiceOver?

三世轮回 提交于 2019-12-02 05:04:46
问题 I am writing an app for people with blindness and would like to put some instruction on its home page. The instruction is a multi-paragraph static text piece. I put it in a UITextView. I would like blind users to be able to read the instruction paragraph by paragraph using VoiceOver. However, when users move VoiceOver focus onto the UITextView, VoiceOver always read the instruction as a whole piece. My devices are iPad 2 and iPhone 5s with iOS 7. So, is there any way I can set up my

VoiceOver is finding a nearby accessible element to read?

天涯浪子 提交于 2019-12-02 04:07:46
I'm adding accessibility to my iOS app. I'm seeing a specific situation that when I tap on a UIView that has isAccessibilityElement = false , and all of its ancestor views are also isAccessibilityElement = false , VoiceOver will speak the text from this view's sibling - a different child of this view's parent. And in Accessibility Inspector, when I hover over this view, the sibling lights up. I don't understand how some view that's not in the hierarchy of the one I'm tapping on could be used for VoiceOver text. I don't see any behavior like this documented for iOS 11. How could this be

when VoiceOver is on, is there a way an app can detect a single-finger (left-right)swipe?

南笙酒味 提交于 2019-12-02 02:23:35
When VoiceOver is active on an iOS device, the single-finger swipe(left or right) gesture allows users to browse the different elements in the view. Is there a way to detect if a user used the single-finger swipe gesture when using voiceover? You might be asking either of 2 things: You want to know when the VoiceOver user successfully issued the single-finger swipe left/right gesture to VoiceOver - VoiceOver will process ("steal") the gesture from your code and do its thing (move VoiceOver cursor to the next/previous element). The closest you can get is to get notifications for a UIView when

How to make attributed string within a UITextView accessible?

风流意气都作罢 提交于 2019-12-02 01:41:09
问题 By default the screen reader will select the entire view, and the link isn't able to be followed on a double tap. In fact, pressing activate on the accessibility inspector crashes the app delegate without any stack trace in the console. I've tried messing with the accessibility traits within the UITextView itself but I didn't have any luck. let quoteAttributedStr = NSMutableAttributedString(string: "This is a test String" + " ") let enableLinkText = NSAttributedString(string: "this is the

How to make attributed string within a UITextView accessible?

喜你入骨 提交于 2019-12-01 23:51:56
By default the screen reader will select the entire view, and the link isn't able to be followed on a double tap. In fact, pressing activate on the accessibility inspector crashes the app delegate without any stack trace in the console. I've tried messing with the accessibility traits within the UITextView itself but I didn't have any luck. let quoteAttributedStr = NSMutableAttributedString(string: "This is a test String" + " ") let enableLinkText = NSAttributedString(string: "this is the clickable text", attributes: dummyLinkAttribute) quoteAttributedStr.append(enableLinkText) return

How to get voice over to read out title when new view controller is pushed?

你说的曾经没有我的故事 提交于 2019-12-01 18:11:26
In the setting app if I double tap on the 'General' row. It pushes the the general view controller. It then says "General" (The name of the current view controller) Then "Settings, back button" (The name of the selected item) However in my app with a custom self.navigaitonItem.titleView it only says "Home, Back Button" How do I get it to read out the name of the screen? (I tired to set self.title ) I havent tested it but you might need to check out the accessibilityLabel property of the view. From documentation: By default, standard UIKit controls and views have labels that derive from their

Is it possible to assign an accessibility action to a UILabel?

╄→гoц情女王★ 提交于 2019-12-01 18:11:16
In our current UI, next to certain labels, we have a help-tip button that when clicked, explains the details of what the label references. As such, VoiceOver identifies these two items as separate accessibility items. However, when using accessibility, we're hoping we can just do everything in the label itself. This way when the label gets focused, the user will here 'Account value, $20 (the accessibilityLabel), double-tap for help (the accessibilityHint)' However, unlike a button, a label doesn't have an action associated with it so I'm not sure how to wire up actually triggering the

How can I set an accessibility trait for the placeholder text in UITextField?

一笑奈何 提交于 2019-12-01 17:17:43
I'm going through our iOS app to fix accessibility issues. One of the features of the app is a UITextField in which the user can enter search queries. I've set the trait of the field to be "search field", and VoiceOver does a good job with the field most of the time. When there's text in the field, it reads the text, then says "search field". The problem I want to solve is how VoiceOver handles the placeholder text. When the text field is empty, we've set the placeholder text to show a sample query. Since it appears as greyed-out text, sighted users can see that it's just the placeholder text.

How to get voice over to read out title when new view controller is pushed?

萝らか妹 提交于 2019-12-01 16:57:40
问题 In the setting app if I double tap on the 'General' row. It pushes the the general view controller. It then says "General" (The name of the current view controller) Then "Settings, back button" (The name of the selected item) However in my app with a custom self.navigaitonItem.titleView it only says "Home, Back Button" How do I get it to read out the name of the screen? (I tired to set self.title ) 回答1: I havent tested it but you might need to check out the accessibilityLabel property of the