Super brief talk I gave about the various approaches for configuring a UITableViewCell with a model object. I gave this talk at the March Cocoaheads meeting in 2013. More information about the meeting below.
http://www.brynbodayle.com/nashville-cocoaheads-recap-321/
8. 2. Pass model to cell
- Quick & easy
- Easy dynamic heights
- Tightly couples cell to model object
- Clean interface
- Nimbus Framework
- Deadly sin?
9. When a UITableViewCell subclass accepts a model object parameter and
updates its constituent subviews as I have described, it is behaving as a data
transformer, not a controller. It does not care about any future updates to the
model unless the controller tells it to transform the updated model object, or
to transform a completely diïŹerent model instance.
- Paul Goracke
14. Further Reading
-Brent Simmons: âUITableViewCell Is Not a Controllerâ
- http://inessential.com/2012/12/31/uitableviewcell_is_not_a_controller
-Paul Goracke: âUITableViewCell Is Not a Controller, But...â
- http://corporationunknown.com/blog/2013/01/01/uitableviewcell-is-not-a-
controller-but/
-Sebastian Rehnby: âSkinnier Controllers Using View Categoriesâ
- http://www.sebastianrehnby.com/blog/2013/01/01/skinnier-controllers-
using-view-categories/