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

Thirteen Ways of Looking at a View Controller

Thirteen Ways of Looking at a View Controller

View controllers: we know them, love them, despise them, and overload them.

Greg Heo

June 06, 2017
Tweet

More Decks by Greg Heo

Other Decks in Technology

Transcript

  1. @gregheo AltConf 2017 I was of three minds, Like a

    tree In which there are three blackbirds. Thirteen Ways of Looking at a Blackbird
 Wallace Stevens
  2. @gregheo AltConf 2017 View Appearance Callbacks • view did load

    • view will / did appear • view will / did disappear
  3. @gregheo AltConf 2017 Handle View Layout • loadView • view

    setup in viewDidLoad • view will / did layout subviews • layout guides
  4. @gregheo AltConf 2017 Miscellaneous • “is editing” state • state

    restoration • search display controller • title
  5. @gregheo AltConf 2017 Navigation • Navigation controllers, tab bar controllers,


    split view controllers • View controller containment • Storyboard segues
  6. @gregheo AltConf 2017 Model View Presentation Logic Navigation Business
 Logic

    Manage Views Massive View Controller View Controller
  7. @gregheo AltConf 2017 When the blackbird flew out of sight,

    It marked the edge Of one of many circles.