开发者

change Label position at runtime

开发者_如何学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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜