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

Tips learned from Topic - Lighter View Controllers

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest. →
Avatar for Joan Romano Joan Romano
November 27, 2013

Tips learned from Topic - Lighter View Controllers

Some tips for improving View Controllers on iOS using the Adapter pattern to split collection/table view delegate code.

Avatar for Joan Romano

Joan Romano

November 27, 2013

Other Decks in Programming

Transcript

  1. isKindOfClass:? Repeated code through view controllers Not easy to maintain

    (what if the model changes?) TONS of code for one single VC
  2. ADAPTERS TO THE RESCUE! tl;dr 
 the adapter pattern allows

    classes to work together that normally could not because of incompatible interfaces, by providing its interface to clients while using the original interface.