tags:

views:

50

answers:

1

Given two labels (or views), how would you automatically move (reposition) the lower one relative to the changing vertical size of the upper one.

A: 

You resize or move them by changing their frame property.

progrmr
yes, but how would you do it "automatically", so if the upper one resizes so the lower one moves in relation...
Titusz
What do you mean automatically? Do you expect the iPhone OS to move them for you? You can get the OS to resize subviews inside a view when the view size changes but that's not the same as moving one label when an adjacent label changes size.
progrmr
Yes I expected to find some sort of layout managment that could do this. Hence the question...
Titusz
There is only automatic resizing, no automatic moving them in relation to each other when they change in size. When you resize a subview you have to resize/move the subviews around it in your code.
progrmr