I would like items in my UICollectionView
to animate in to view as the user scrolls through the list (I am using a subclass of UICollectionViewFlowLayout
).
I specify the position in the Layout Manager, what I would like to be able to do is to also specify an initial transform and have that applied in an animation at the correct time (when the cell first appears on screen). To see the effect I mean, check out the Google Plus app on iOS. Ideally a different transform depending on the location of the cell.
I can't seem to find a way to find out when a cell is displayed (no equivalent of willDisplayCell
as there is on UITableView
) or any pointers on where to go for this.
Any suggestions?
You can just about make out the animation in Google Plus in this screen shot:
Also, take a look at iPhoto on the iPad. I don't know if they're using a UIcollectionView (probably not, as it worked on iOS5) but this is the sort if effect I'm looking for, the photos appear to fly in from the right.