I want to take my NSTimeInterval
and format it into a string as 00:00:00 (hours, minutes, seconds). What is the best way to do this?
Since iOS 8.0 there is now NSDateComponentsFormatter
which has a stringFromTimeInterval:
method.
[[NSDateComponentsFormatter new] stringFromTimeInterval:timeInterval];