Friday, April 2, 2010

musing on views and view controllers

Anyone have any idea how to manage a view controller that may have an arbitrary number of views? I'm thinking to have a base view that the other views are descendents in a hierarchy of [thisView addSubView:anotherView] which should be easy to do since I'm storing them in a mutable array.

Next iphone app : something that doesn't involve an arbitrary number of UIImageViews.

edit: since the arbitrary number of views do not necessarily need to know about each other, this is best accomplished by having a ViewController subview one master view that has all of the subviews in its hierarchy. This is probably the best approach unless you need to worry about layers and or clipping.
[thx brian]

No comments: