infinitered / redpotion

We believe iPhone development should be clean, scalable, and fast with a language that developers not only enjoy, but actively choose. With the advent of Ruby for iPhone development the RubyMotion community has combined and tested the most active and powerful gems into a single package called RedPotion
MIT License
234 stars 40 forks source link

Support MVC separation and greater customization of cell appearance by DataTableScreen #172

Closed dchersey closed 6 years ago

dchersey commented 7 years ago

Refactored data_table so that the :cell method can be defined either on the model (default implementation) or on the DataTableScreen subclass (so that view-specific logic can affect the cell's appearance). The default approach is appropriate for simple cases with standard cell behavior. The latter is more MVC as discussed in https://github.com/infinitered/redpotion/issues/67 and allows greater cell customization.

andrewhavens commented 6 years ago

Hi @dchersey! Sorry, it looks like it's been a while since we looked at this and now things are conflicting. I'm going to close this PR, but feel free to reopen if you want to fix the merge conflicts and bring it up to date.