根据您的要求使用方法:
- (NSString *)timeFormatted:(float)totalSeconds
{
float seconds = totalSeconds % 60;
float minutes = (totalSeconds / 60) % 60;
float hours = totalSeconds / 3600;
return [NSString stringWithFormat:@"%02f:%02f:%02f",hours, minutes, seconds];
}