Upgrade to Pro — share decks privately, control downloads, hide ads and more …

UICollectionView:Awesome

Avatar for Ben Stovold Ben Stovold
September 04, 2013

 UICollectionView:Awesome

An overview of UICollectionView and some of the awesome things you can do with it.

Demo Code: https://github.com/followben/uicollectionview-awesome

First presented at CocoaHeads BNE on Tuesday 4th Sept, 2013.

Avatar for Ben Stovold

Ben Stovold

September 04, 2013
Tweet

More Decks by Ben Stovold

Other Decks in Technology

Transcript

  1. F * C K I N G AW E S

    O M E - @stevestreza It’s the new UITableView - @mattt THE AWESOMEIST UI CLASS I’VE EVER SEEN - @oleb Magic. Pure Magic. - @radiantav
  2. E A S I E R than tableviews Cell gymnastics

    Layout hacks 䡬 ✕ ✕ Better code
  3. A N AT O M Y of a collection view

    cells supplementary views
  4. of a collection view cells A N AT O M

    Y supplementary views decoration views
  5. A N AT O M Y UICollectionViewDataSource numberOfItemsInSection: cellForItemAtIndexPath: UICollectionViewDelegate

    didSelectItemAtIndexPath: shouldHighlightItemAtIndexPath: and many more…
  6. F L O W L AYO U T Powerful All

    types of grids Automatic rotation transitions Properties and delegates Designed to be subclassed
  7. C U S T O M F L O W

    L AYO U T S Even more power Tweak attributes Add new attributes Add gesture support Custom insert/ delete animation
  8. C U S T O M L AYO U T

    ROW BASED GRID
  9. T I P S Keep It Simple Performance Don’t forget

    Table Views PSTCollectionView Watch for bugs Check out REDACTED There’s no such thing as magic