Is there any type of container, view, class or framework, in objective-c, whereby one can add UI elements to the view and have them automatically align either vertically or horizontally? Or is their a way to get UIView to have this behavior?
What I am trying to accomplish is to dynamically and conditionally add UI elements to a form but not have to worry too much about the layout, as I am not using Interface Builder for this part.
I’ve done quite a bit of coding with flex/actionscript and found their HBox and VBox components to be pretty handy for this.
Does anyone know how to handle auto layout this way or in a similar fashion?
There is no direct equivalent that I am aware of. In Cocoa each view can be a container of many subviews. The way you control the layout of your subviews can include: