iphone - xcode conditions on view -
iphone - xcode conditions on view -
i have complicated controller xib interface view. alter 2 labels' positions(a slight shift) on condition. don't want hardcode new coordinates of labels in code, because it's not flexible solution (in future can alter labels' positions in xib , hardcoded positions incorrect).
so, can problem? should duplicate xib , pick 1 of them on condition? or may there more elegant solution?
thank you!
you should shift them relative current position
cgrect labelframe = mylabel.frame ; labelframe.origin.x +=something ; mylabel.frame = labelframe;
this create shift in x direction something.
you can in uiview animation block animate shift
iphone xcode interface-builder
Comments
Post a Comment