1 | - (NSString *) secondsToMinutesString:( int ) seconds |
2 | { |
3 | NSString *secondsStr; |
4 | |
5 | if (seconds % 60 < secondsstr =" [@ "0" stringByAppendingFormat:@ "%d" , seconds % 60]; |
6 | else secondsStr = [@ "" stringByAppendingFormat:@ "%d" , seconds % 60]; |
7 | |
8 | return [NSString stringWithFormat:@ "%.0f : %@" , floor (seconds/60), secondsStr]; |
9 | } |
0 Comments