Red > Green > Refactor > Red

cycle is based on desire

MVV(M) implements

www.raywenderlich.com


ZZZViewController.h

  • include view model header

f:id:mat5ukawa:20150426225036p:plain

ZZZViewController.m

  • ViewModel property is strong

f:id:mat5ukawa:20150426225530p:plain

ZZZViewModel.h

  • Properties should place in header because used from public

f:id:mat5ukawa:20150426225545p:plain

ZZZZViewModel.m

  • (nothing to write)

f:id:mat5ukawa:20150426225621p:plain

(continue to survey)

  • in ZZZViewController.m, when init, why underscore property is valid (_topViewModel)