Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

change Label position at runtime

Tags:

iphone

How to change UILabel position at runtime ??

Thanks.

like image 986
Gyani Avatar asked Sep 21 '10 07:09

Gyani


2 Answers

label.frame = CGRectMake(...);

or

label.center = CGPointMake(...);
like image 67
Vladimir Avatar answered Sep 30 '22 07:09

Vladimir


label.frame = CGRectMake(newX, newY, label.frame.size.width, label.frame.size.height);

You can also change width and height if needed.

like image 23
Alexej Kubarev Avatar answered Sep 30 '22 07:09

Alexej Kubarev