"88:88:88"과 정확히 동일한 픽셀 공간을 사용하려면 NSString
을 "hh : mm : ss"형식으로 지정하고 싶습니다. 그게 가능하니?NSString은 항상 고정 된 글꼴 너비를 사용합니다.
지금은 사용하고 있습니다 : 어떤 성공
// ...
NSMutableString * strS = [[NSMutableString alloc] initWithFormat:@"%d", Seconds];
if (Seconds<10){
[strS insertString:@"0" atIndex:0];
}
// Make the time to show
[ClocklLabel setText:[NSString stringWithFormat:@"%[email protected]:%[email protected]:%[email protected]", strH,strM,strS]];
!
답변 해 주셔서 감사합니다. –
@ JohnWilund, 가장 유용한 답변을 수락하십시오. 단지 클릭이 필요합니다. – vikingosegundo