Since iOS 8.0 there is now NSDateComponentsFormatter
which has a stringFromTimeInterval:
method.
[[NSDateComponentsFormatter new] stringFromTimeInterval:timeInterval];
More Related Contents:
- How do I implement an Objective-C singleton that is compatible with ARC?
- How to write iOS app purely in C
- Synthesized property and variable with underscore prefix: what does this mean? [duplicate]
- Must every ivar be a property?
- Any way to bold part of a NSString?
- Cocoa error 3840 using JSON (iOS)
- presentViewController: crash on iOS
- NSInvalidUnarchiveOperationException: Could not instantiate class named NSLayoutConstraint
- convert UIImage to NSData
- Implementing a method taking a block to use as callback
- applications expected to have a root view controller console
- iOS start Background Thread
- Container View Controller Examples [closed]
- ios: change the colors of a UIImage
- UIGestureRecognizer blocks subview for handling touch events
- resizing a UIImage without loading it entirely into memory?
- Appending to the end of a file with NSMutableString
- iOS: How do I know if a property is KVO-compliant?
- iOS Screenshot part of the screen
- Is it possible to detect that your iOS app is running on an iPad mini at runtime?
- Sort NSArray of custom objects based on sorting of another NSArray of strings
- What is the empty @interface declaration in .m files used for?
- How can I draw an arrow using Core Graphics?
- How to customize FBLoginVIew?
- WaveForm on IOS
- Calculating a simple sum with Core Data
- Assigning an existing CGColor to a CGColor property works in iOS Simulator, not iOS device. Why?
- Why is my string potentially unsecure in my iOS application?
- What is the reason of kSecTrustResultRecoverableTrustFailure?
- Getting reference to the top-most view/window in iOS application