UICollectionView as a subview of a UIScrollView not scrolling
UICollectionView as a subview of a UIScrollView not scrolling
- Subject: UICollectionView as a subview of a UIScrollView not scrolling
- From: Doug Russell <email@hidden>
- Date: Wed, 24 Apr 2013 14:20:40 -0700
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.
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)
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