Assuming you need the format "XX: XX: XX.XX", you can use the following code:
NSString *timerend = [[NSString alloc] initWithFormat:@"%02.0f:%02.0f:%05.2f", hours, minutes, seconds];
When formatting floats a number before the dot (05) defines the minimum common characters in the entire string, not just the bit to the dot.
Luke
source share