uiaccessibility

Accessibility (Voice Over) with Sprite Kit

随声附和 提交于 2019-12-21 16:55:16
问题 I'm attempting to add support for Voice Over accessibility in a puzzle game which has a fixed board. However, I'm having trouble getting UIAccessibilityElements to show up. Right now I'm overriding accessibilityElementAtIndex , accessibilityElementCount and indexOfAccessibilityElement in my SKScene. They are returning an array of accessible elements as such: func loadAccessibleElements() { self.isAccessibilityElement = false let pieces = getAllPieces() accessibleElements.removeAll

UIAccessibility change UITableView voiceover announcements (row # of #)

这一生的挚爱 提交于 2019-12-21 16:23:12
问题 With VoiceOver enabled a user can use a 3 finger swipe gesture to scroll TableViews. VoiceOver verbally announces to the user a phrase indicating their location on the tableview i.e. the rows that are visible such as "Rows 1 to 4 of 5". I would like to override this verbal prompt and get voiceover to announce something else to the user. 回答1: You can't change only the message. You will have to override accessibilityScroll: and do the scrolling and then post the scroll announcement (at least I

Moving Accessibility Voiceover cursor focus to a specific element

别说谁变了你拦得住时间么 提交于 2019-12-21 04:08:33
问题 I'm having an issue with moving the voiceover cursor to a specific element on viewDidAppear. I followed Apple's guidelines for focusing on a specific element, in this case a dismiss button, but the cursor ends up elsewhere Here is my Code: - (void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; UIAccessibilityPostNotification(UIAccessibilityScreenChangedNotification, self.dismissButton); } Any help, ideas, would definitely be appreciated! thank you so much. 回答1: If I remember

How to use tap gesture in Accessibility in swift?

风流意气都作罢 提交于 2019-12-20 01:39:27
问题 I'm working on app for blind people first i needed to use swipe gesture and after search i can do it by using override func accessibilityScroll( direction: UIAccessibilityScrollDirection)-> Bool { if direction == UIAccessibilityScrollDirection.Left { Do what you want to do } } Now I need to use tap gesture and I can't find any function to use make custom tap in Accessibility can anyone help me pleasee! Thanks 回答1: You shouldn't use tap gesture for UIAccessibility ot try to add tap gestures to

UITextView setup for Voice Over to select/read by paragraph

我们两清 提交于 2019-12-14 02:32:18
问题 I have a UITextView set up with an updating log that I'm trying to make accessible. I'd like to have it so, with Voice Over enabled, and entire paragraph is selected and read. Currently I can either set the accessibilityTrait and have the entire view read aloud in one giant block, or not set the accessibilityTrait set and have only a single line selected at a time. Is there a way to block paragraphs together for VoiceOver? Here is the code I'm currently using: NSString *string =

Informing voiceover users that they have highlighted an element within a container

泪湿孤枕 提交于 2019-12-13 17:26:42
问题 I'm looking to implement something for voiceover users that is similar to how Apple handles the miniplayer in their Music app. In the miniplayer, there are a number of accessibility elements: the album artwork, the track metadata, the play and forward buttons. When a user first selects an element within the miniplayer, the voiceover reads "Miniplayer; double tap to expand the miniplayer" before giving the label for the element selected. But if you navigate between elements in the miniplayer,

UIAccessibility - Read all the labels and buttons on the screen from top to down

时光毁灭记忆、已成空白 提交于 2019-12-13 05:04:30
问题 When view shows up only first label is being read, how can i make the app to read all the labels present on the screen without touching the screen so user can know what options are available? Thanks 来源: https://stackoverflow.com/questions/24918480/uiaccessibility-read-all-the-labels-and-buttons-on-the-screen-from-top-to-down

iOS accessibility - button focussed

给你一囗甜甜゛ 提交于 2019-12-13 04:44:16
问题 There are 3 buttons in my app, when voice over is turned on and the user swipes to the right, the next button is selected. Note - The button accessibility focus is different from button pressed. Reason for asking - I want the app to announce "AAA" when the button 1 is selected and "BBB" when button 1 is pressed. Questions How can the above be achieved ? Is there a way to call a method when a button is selected. 回答1: The View (in this case button) needs to implement the protocol

UIAccessibility in gridView - doesn't see new cells

ε祈祈猫儿з 提交于 2019-12-12 02:19:59
问题 In my project I have tableView, as a row there is a custom UITableViewCell, that has one of it property - GMGridView (its similar to a UICollectionView), it has its delegate methods: - (GMGridViewCell *)GMGridView:(GMGridView *)gridView cellForItemAtIndex:(NSInteger)index { GMGridViewCell *cell = [gridView dequeueReusableCell]; if (!cell) { cell = [[GMGridViewCell alloc] initWithFrame:CGRectMake(0, 0, size.width, size.height)]; cell.contentView = [[GridViewContentView alloc] initWithFrame

UIAccessibilityTrait adjustable does not enter increment() or decrement() swift

拈花ヽ惹草 提交于 2019-12-11 12:53:47
问题 I have an element (an imageView) which shows a number. I want the voice over user to swipe up to increment and swipe down to decrement. There are a total of six numbers (images) and each number shoes different content on screen. For that intent I made the view adjustable: imageView.accessibilityTraits = .adjustable I also implemented the following methods: override func accessibilityIncrement() { print("increment") } override func accessibilityDecrement() { print("decrement") } However, when