objective c - Anything like layout manager in Java for iOS? -
objective c - Anything like layout manager in Java for iOS? -
guys, newbee ios. need create dynamic layout since gui generated according data. checked uiview references, seems standard way add together subview like:
cgrect rect = cgrectmake(0, 0, width, height); uilabel *label = [[uilabel alloc] initwithframe: rect]; [someview addsubview: label];
but, maybe can't sure width , height. in java, container utilize layout manager automatically deal width , height based on rules. in ios, can utilize layout manager in java?
thanks. clue ok.
you can in ios, although not one-to-one java layouts. thought of possible, utilize size inspector in interface builder. done there, such allowing item grow horizontally or remain same distance top, can done programmatically. if farther customization needed, can override event hooks in view or controller, such uiview's -layoutsubviews
method.
objective-c cocoa ios
Comments
Post a Comment