10:20PM
An NSString category for nicely formatting NSTimeIntervals
I had an NSTimeInterval that I needed to display, and I couldn't find an easy way to do it. Luckily, Objective-C ha s categories, so it was just a matter of writing an NSString category. I posted a gist on GitHub; if you've got a better way to do it, please let me know!
tagged
Objective-C,
cocoa,
iPad,
iphone,
sdk in
programming
Objective-C,
cocoa,
iPad,
iphone,
sdk in
programming
Reader Comments