NSInteger
轉(zhuǎn)換為 NSString
, 前面補(bǔ)上0氏义,例如:1 -> 01
NSInteger num = 1;
NSString *str = [NSString stringWithFormat:@"%02ld", (long)num];
NSInteger
轉(zhuǎn)換為 NSString
, 前面補(bǔ)上0氏义,例如:1 -> 01
NSInteger num = 1;
NSString *str = [NSString stringWithFormat:@"%02ld", (long)num];