【发布时间】:2012-09-11 17:18:40
【问题描述】:
我想要一个格式为“hh:mm:ss”的NSString 以使用与字符串“88:88:88”完全相同的像素空间。这可能吗?
现在我正在使用:
// ...
NSMutableString * strS = [[NSMutableString alloc] initWithFormat:@"%d", Seconds];
if (Seconds<10){
[strS insertString:@"0" atIndex:0];
}
// Make the time to show
[ClocklLabel setText:[NSString stringWithFormat:@"%2@:%2@:%2@", strH,strM,strS]];
没有成功!
【问题讨论】:
标签: objective-c ios nsstring font-size