Fork me on GitHub

Alex Rupérez

Link: http://j.mp/13q25tQ
Published: 16 Aug 11:56
Alejandro Rupérez alexruperez created repository Coverflow http://j.mp/13q25tQ

Coverflow
Coverflow Implementation using PSTCollectionView (iOS5 supported...

View on GitHub


View README


Coverflow Implementation using PSTCollectionView (iOS5 supported UICollectionView)

What?

This is an iPhone project implementing Coverflow using iOS5 PSTCollectionViews (iOS5 supported UICollectionViews) and a custom PSTCollectionViewLayout

Screenshot: http://cloud.schwa.io/image/0z0N3A0e2b1l

View it in action here: CollectionViewCoverFlow.mov

Yes, Apple demoed this at WWDC but I think the interpolation technique I use is rather neat and allows you to easily adjust the layout and behavior of the layout.

This proyect is based on schwa/Coverflow and steipete/PSTCollectionView.

CInterpolator

CInterpolator objects are a little like CAKeyFrameAnimation objects except they're not necessarily time based. You can use them for (linear) key frame interpolation between any keys and values

TODO

  • The "Gloom" layer doesn't do a very good job with alpha backgrounds.
  • Aliasing is very obvious on straight edges when rotation.
  • Shadow needs to be longer to deal with perspective transform. See next item.
  • Need to specify manually the Y position of cells so that we can force cells to draw offscreen (for shadows). Or just rely on UIKit's ability to not clip to bounds.
  • Need to properly deal with aspect fill/fit images.