mrjjwright/TUILayout — Issue #1: Different types of TUIViews
Author: erndev
Created: 2011-12-05 13:08:36+00:00
State: open

Hi

First of all, great class. I love the way you do the animations .

This is not an issue, but a feature request/suggestion.

What would you think about expanding this class to allow multiple kind of tuiviews?
Right now, it only supports a single class (via viewClass property) and it instantiates the objects itself.

it could be great if different rows/columns could have different kind of views.
But this would require to delegate the view creation.
I am thinking about something similar to current TUITableView design.
Maybe ask the delegate to create the view for you, and ask it also to tell the height/widht of the view.

i think it could be also compatible with current design. For instance, if the viewClass is set, use it. If it's not set, try to get that from the delegate.

what do you think?
if you find it useful, i could try to contribute with some of the required changes myself.