开发者

change Label position at runtime

开发者 https://www.devze.com 2023-01-17 10:43 出处:网络
开发者_如何学CHow to change UILabel position at runtime ?? Thanks.label.frame = CGRectMake(...);

开发者_如何学CHow to change UILabel position at runtime ??

Thanks.


label.frame = CGRectMake(...);

or

label.center = CGPointMake(...);


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

You can also change width and height if needed.

0

精彩评论

暂无评论...
验证码 换一张
取 消