gleue / TGLStackedViewController

A stacked view layout with gesture-based reordering using a UICollectionView -- inspired by Passbook and Reminders apps.
MIT License
1.21k stars 117 forks source link

Set cell height #11

Closed WendyLei closed 10 years ago

WendyLei commented 10 years ago

I'd like to set the height of the first cell higher than the others, as below image shows, how can I achieve this?

cards

gleue commented 10 years ago

You'd have to modify method -prepareLayout in class TGLStackedLayout to achieve this effect.

There's a for-loop starting at TGLStackedLayout.m:195 iterating all items. Adding a special case for item 0 should do the trick.