I am trying to understand how to apply SRP to the WatchKit platform; Specifically row classes.
I say WatchKit because Watchkit has independent table view rows
aka cells and I want to use those row classes for as much work on the UI as possible and take UI business out of the main VCs.
I want my view controllers to be responsible only for making network calls and the models to do all the network transformations etc.
Most developers declare only IBOutlets in the row classes. But what other business can be done in those row classes?
Please give examples. Thanks
Aucun commentaire:
Enregistrer un commentaire