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

2013-02-05 UICollectionView

2013-02-05 UICollectionView

iOS, Objective-C, UICollectionView

CocoaHeads Tricity

February 05, 2013
Tweet

More Decks by CocoaHeads Tricity

Other Decks in Programming

Transcript

  1. AGENDA • Introduction • „Big picture” • UICollectionView architecture, data

    model & interaction • FlowLayout - basic tool (but powerful) • Live Demo • Questions
  2. WHAT EXACTLY IS IT? • UI class, similar to UITableView

    (not a replacement) • very powerful (customizable) • your UX/graphic designer will love it ;) • available iOS 6.0+ (not only... more later) O’rly?
  3. CELLS • No predefined styles (like in UITableView) • New

    properties - selection & highlight • New reuse format (improved) [cV registerClass: ...] [cV registerNib: ...] [cV dequeReusableCell...] UICollectionViewCell Background View Selected Background View Content View
  4. VIEW (FLOW) LAYOUT CSS for your UICollectionView ! UICollectionViewLayout is

    an abstract base class for positioning cell views and their supplementary and decoration views. But rather than subclass this directly, most applications will opt to use or subclass UICollectionViewFlowLayout. Flow layouts cover the broad class of layouts with some notion of linearity, whether that's a single row or column or a grid. nshipster.com
  5. Sources: - WWDC2012 - Introducing CollectionViews - Advanced Collection Views

    and Building Custom Layouts - NSHipster.com - RayWenderlich.com