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?
NSTimeInterval
Since iOS 8.0 there is now NSDateComponentsFormatter which has a stringFromTimeInterval: method.
NSDateComponentsFormatter
stringFromTimeInterval:
[[NSDateComponentsFormatter new] stringFromTimeInterval:timeInterval];
2.1m questions
2.1m answers
60 comments
57.0k users