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];
1.4m articles
1.4m replys
5 comments
57.0k users