【发布时间】:2014-11-27 23:58:36
【问题描述】:
下面是标签的一些其他属性。显然 nstextalignmentleft 不是我想要的。无法理解在哪里输入坐标。
self.lblTimer = [[UILabel alloc] init];
self.lblTimer.translatesAutoresizingMaskIntoConstraints = NO;
self.lblTimer.textAlignment = NSTextAlignmentLeft;
self.lblTimer.font = [UIFont systemFontOfSize:10];
self.lblTimer.textColor = [UIColor redColor];`self.lblTimer = [[UILabel alloc] init];
【问题讨论】:
-
你想做什么?
textAlignment只能设置为左、右、居中、对齐和自然。您是否要在标签边缘和文本之间创建偏移量? -
标签是一个倒计时的计时器。我只是想把它放在屏幕的左下角。
标签: ios alignment label coordinates