Pro Yearly is on sale from $80 to $50! »

Lighter View Controllers

Lighter View Controllers

CocoaHeads Stockholm. Made with Deckset.

Transcript

  1. Hej

  2. Jag ❤ Sverige

  3. Jag ❤ Fika

  4. ---: MVC

  5. Model = Model

  6. View = View

  7. categories

  8. split up

  9. share

  10. UITableView datasource

  11. None
  12. Configuring the cell Photo *photo = [self photoAtIndexPath:indexPath]; cell.textLabel.text =

    photo.name; cell.detailTextLabel.text = photo.user;
  13. subclass? Hello

  14. category! @interface UITableViewCell (CBEConfigureForPhoto) - (void)configureForPhoto:(Photo *)photo; @end

  15. None
  16. CoreDataController : NSObject <UITableViewDataSource>

  17. other protocols

  18. UITableViewController

  19. None
  20. Child View Controllers

  21. None
  22. View Controller Transitions

  23. None
  24. ultra light View Controllers

  25. Interface Builder

  26. Intentions

  27. None
  28. The only method - (void)viewDidLoad { [super viewDidLoad]; self.modelContainer.model =

    self.photo; }
  29. None
  30. None
  31. Eh...

  32. More things » AppCode » MVVM » ReactiveCocoa » Find

    files by size
  33. tack!

  34. References » https://github.com/chriseidhof/photolist » http://chris.eidhof.nl/posts/intentions.html » http://bendyworks.com/geekville/articles/2014/2/ single-responsibility-principle-ios » http://www.objc.io/issue-1/

  35. None
  36. None
  37. @chriseidhof