voiceover

How can I make a UITableView with big header VoiceOver compatible?

冷暖自知 提交于 2019-12-01 11:43:35
问题 My app has a table view with a large, blank tableHeaderView allowing to scroll the visible cells completely out of the window (to the bottom). So a contentOffset of {0,0} means, the content is scrolled out of the window. The initial contentOffset is {0,{height of tableView}}. This all works fine but I'm having a hard problem to enable accessibility for it. The user steps through the elements, starting with the navigation bar and its bar buttons. As soon as she swipes again to activate the

Advancing VoiceOver to a specified element in mobile Safari

一个人想着一个人 提交于 2019-12-01 06:47:12
I'm having trouble figuring out how to advance VoiceOver to a specific element in Mobile Safari. So far, I've tried: <a href="#target">Skip</a> ... <a name="target"></a> This will (sometimes) advance to the target if the page is scrollable but doesn't work consistently on pages both long and short and sometimes will cause the following element not to get read! I've also tried: <a href="javascript:someElement.focus()">Skip</a> Unfortunately, this doesn't seem to work for non-input fields. More advanced, I've tried placing the link before the element I want to skip and tried setting that element

Accessible time labels on iOS

前提是你 提交于 2019-12-01 02:37:31
I am trying to make my iPhone app accessible. Part of it involves generating accessible VoiceOver labels for the time and date parts of an NSDate . How do I format an NSDate in an accessible way that will work correctly in all languages that VoiceOver supports? NSDateFormatter has a method called localizedStringFromDate:dateStyle:timeStyle: that handles the localization automatically. Pass it a date and NSDateFormatterStyles for each the date and time portions. Note that you may want different styles for the date and time if you want something that reads nicely with voiceover.

Accessible time labels on iOS

大兔子大兔子 提交于 2019-11-30 22:06:48
问题 I am trying to make my iPhone app accessible. Part of it involves generating accessible VoiceOver labels for the time and date parts of an NSDate . How do I format an NSDate in an accessible way that will work correctly in all languages that VoiceOver supports? 回答1: NSDateFormatter has a method called localizedStringFromDate:dateStyle:timeStyle: that handles the localization automatically. Pass it a date and NSDateFormatterStyles for each the date and time portions. Note that you may want

Advancing VoiceOver to a specified element in mobile Safari

吃可爱长大的小学妹 提交于 2019-11-30 18:02:21
问题 I'm having trouble figuring out how to advance VoiceOver to a specific element in Mobile Safari. So far, I've tried: <a href="#target">Skip</a> ... <a name="target"></a> This will (sometimes) advance to the target if the page is scrollable but doesn't work consistently on pages both long and short and sometimes will cause the following element not to get read! I've also tried: <a href="javascript:someElement.focus()">Skip</a> Unfortunately, this doesn't seem to work for non-input fields. More

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

How to disable accessibility for a view including all it's subviews?

*爱你&永不变心* 提交于 2019-11-30 08:11:14
When I set isAccessibilityElement = NO on a view that contains subviews with isAccessibilityElement = YES , VoiceOver still detects them. I need to switch off accessibility for an entire view hierarchy that must be handled differently by VoiceOver. How can I achieve this without having to loop through every single item in the object graph and mess with it's setting? Rakesh iOS Dev self.accessibilityElementsHidden = YES; This makes all subviews hidden from accessibility. I would try setting the accessibilityElementsHidden property of the main view to YES. If that does not what you want, I would

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

iOS Accessibility: Custom voice over text for bundle display name

烂漫一生 提交于 2019-11-30 00:14:47
问题 iOS voice over does not correctly read out my companies name. For example it reads out "dog" instead of "D.O.G." (not my real company name but you get the idea) We get around this by telling the app to read out "D O G" in all places where the company name is read out. However, voice over reads the bundle display name out incorrectly both on the app icon, and after the app has finished launching. Is there a way to make my app read out "D O G" instead of "dog" after app launch? I would settle

How to disable accessibility for a view including all it's subviews?

[亡魂溺海] 提交于 2019-11-29 11:51:20
问题 When I set isAccessibilityElement = NO on a view that contains subviews with isAccessibilityElement = YES , VoiceOver still detects them. I need to switch off accessibility for an entire view hierarchy that must be handled differently by VoiceOver. How can I achieve this without having to loop through every single item in the object graph and mess with it's setting? 回答1: self.accessibilityElementsHidden = YES; This makes all subviews hidden from accessibility. 回答2: I would try setting the