Re: UICollectionView as a subview of a UIScrollView not scrolling
Re: UICollectionView as a subview of a UIScrollView not scrolling
- Subject: Re: UICollectionView as a subview of a UIScrollView not scrolling
- From: Chris Fleizach <email@hidden>
- Date: Thu, 25 Apr 2013 11:54:04 -0700
On Apr 24, 2013, at 2:20 PM, Doug Russell <email@hidden> wrote:
> I have an app that is paged from left to right with each page containing a collection view.
>
> I'm having several issues with scrolling and item selection.
>
> 1. Flicking through the items in the collection view isn't in the order that the views are visually on screen. I can fix this by subclassing and using the accessibility container api to manipulate the order in which I give the items to the screen reader, but it's surprising I would need to.
CollectionView support is not great right now.
VO treats a collection view like any other scroll view with objects, which may not give the best results.
Your use of the container API is probably a good idea for now.
>
> 2. Flicking through the items doesn't cause scrolling to the next page. (This does work with a plain collection view not housed in a scroll view)
>
> 3. When I do scroll it isn't able to reach the full extent of the collection view. The distance of each scroll seems to be off.
>
> Here is a sample project demonstrating these issues: http://cl.ly/2q3w2u0L1038
>
> 1 I have more or less worked out (if inefficiently)
>
> 3 I can fix by putting a container view around the scroll view and then presenting the collection views items as if they were the accessibility container children of the container view (so threading past the scroll view and the collection and grabbing the cells directly and making them appear to be contained in this outer container view)
>
I think you might be able to monitor
-(void)accessibilityElementDidBecomeFocused
and then scroll the UICollectionView to the position that you want. Doing that should force other items into view
> 2 I don't really see a way to know when to scroll the collection view
>
> Any guidance would be very helpful.
> _______________________________________________
> 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
_______________________________________________
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