objective c - Anything like layout manager in Java for iOS? -


Friends, I am a new kid for iOS. I need to create dynamic layouts because the GUI will be generated according to the data. "

  cgrrsrcct = cgartmake (0, 0, width, height); UILBL * Labels = [[UILBL Alloc] Initwith Frame: Rect;); [SomeView addSubView: label];  

But, maybe I can not be sure that the width and height In Java, container usage layout manager to automatically deal with width and height based on some rules. In iOS, can I use something like layout manager in Java?

Thanks any clues will be cured.

You can do this in iOS, although this one-to-one with Java layout. Get the idea of ​​what's possible, use the size inspector in the interface builder. Whatever is done there, such as allowing an item to develop horizontally or to stay at the same distance from above, can be done programmatically if more customization is needed, You can override the event hook in the controller, such as UIView's --layoutSubviews method.


Comments