UICollectionView parallax-like horizontal scrolling
UICollectionView parallax-like horizontal scrolling
- Subject: UICollectionView parallax-like horizontal scrolling
- From: "Mazzaroth M." <email@hidden>
- Date: Thu, 16 Oct 2014 01:01:59 -0400
In the running apps view(double-tap Home button) there are two rows each
which contain two different types of cells. How would one implement this
using UICollectionView?
I more or less want to do this where the lower row cells are slightly
narrower than the upper row such that when you swipe to scroll, the items
in both rows are centred on the screen at the same time but because the
items in row 1 are slightly narrower, they will scroll slightly faster than
the items in row 0 creating a parallax-like effect. An extreme example of
this would be
https://github.com/allaboutapps/A3ParallaxScrollView
in the tree example, however this is done with a custom UIScrollView
subclass.
And so, I know that this is possible but not sure if I can do it with
UICollectionView and may need to use UIScrollView instead(however would
prefer to figure it out with UICollectionView).
In my attempts for UICollectionView, I was thinking that I'd need to use
one type of cell for row 0 and another type of cell for row 1, but it's not
clear to me how to specify a different layout for each of the rows, which
appears to be what I need to do.
Any thoughts on this?
maz
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden