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

Skinny View Controllers

Endoze
August 07, 2014

Skinny View Controllers

Presentation covering how to make your iOS view controller code simpler and leaner.

Endoze

August 07, 2014
Tweet

More Decks by Endoze

Other Decks in Technology

Transcript

  1. But Seriously… Every app has controllers Controllers are commonly the

    largest files in any project Controllers are the hardest objects to reuse
  2. Our Goal View Controllers containing ideally less than 150-200 lines

    Simple methods made up of 5-10 lines More Objects
  3. Game Plan Simplify controller methods Add model for quotes Move

    api call to new quote object Abstract UITableViewDataSource Abstract configuring of UITableViewCell