Change Label Position at Run Time

How to change position UILabelat runtime

Thank.

+5
source share
2 answers
label.frame = CGRectMake(...);

or

label.center = CGPointMake(...);
+3
source
label.frame = CGRectMake(newX, newY, label.frame.size.width, label.frame.size.height);

You can also change the width and height, if necessary.

+3
source

All Articles