MrShoot
MrShoot

Reputation: 863

Switching cells with UICollectionView

I've just started messing around with UICollectionViews and layouts. I'm wondering how I can accomplish the following:

Layout

Tapping on cell located on the 2nd row, middle column would expand that cell into the frame you see as red. Doing this basically switches cells (I guess it can be done this way?) while the other ones reposition themselves with his newly added cell.

Any ideas? PS: The best way to describe this is the way Twitter #music does the cell animation when tapped.

Upvotes: 1

Views: 248

Answers (1)

manuelBetancurt
manuelBetancurt

Reputation: 16168

Have some custom cells like a uiTableView

on

cellForRowAtIndexPath == 4

have the cell look like you want to, set layout, height for this cell too!

just use like it was a normal uiTableView

Upvotes: 1

Related Questions