标签:
1 #pragma mark - 时间算法 2 // 输入秒数返回字符串 3 - (NSString *)changeTimeData:(int)time 4 { 5 NSString * rslt = [NSString string]; 6 if (time >= 60) { 7 rslt = [NSString stringWithFormat:@"%.2d:%.2d",time / 60,time % 60]; 8 }else{ 9 rslt = [NSString stringWithFormat:@"00:%.2d",time % 60]; 10 } 11 return rslt; 12 }
标签:
原文地址:http://www.cnblogs.com/-Eric-Liu/p/5564018.html