Preventing UICollectionView from scrolling with VoiceOver
Preventing UICollectionView from scrolling with VoiceOver
- Subject: Preventing UICollectionView from scrolling with VoiceOver
- From: Jonathan del Strother <email@hidden>
- Date: Wed, 01 Oct 2014 18:32:08 +0100
Hi,
I've got a UICollectionView that behaves somewhat similarly to a
UIPageViewController - it just shows a single item at a time, with
manually-triggered horizontal scrolling to get to the next item.
I'd like VoiceOver to completely ignore offscreen items, but I'm
struggling. I've tried subclassing the collection view and/or
wrapping the collectionview in an accessible container to just return
the elements of the current page in accessibilityElementAtIndex.
The main two problems I've been running into are -
- UICollectionView suddenly scrolling to the first or last page, when
you swipe from an element adjacent to the collection view. This is
triggered via the private method -[UIScrollView
accessibilityApplyScrollContent:sendScrollStatus:animated:]
- Unpredictable ordering in the elements on screen. How is the
VoiceOver order determined when swiping between elements in different
view hierarchies? I often seem to swipe forwards through successive
elements in my page, but then a swipe-back skips over all of them out
of the collection view.
Any suggestions on dealing with this?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden