RelativeTimeLabel
open class RelativeTimeLabel : UILabel
An UILabel, given a reference time, renders that time as a time period relative to the current time..
-
The calendar, default current.
Declaration
Swift
public var calendar: Calendar
-
String to be attached before the reference time.
Declaration
Swift
public var prefix: String? { get set }
-
String to be attached after the reference time.
Declaration
Swift
public var suffix: String? { get set }
-
Sets the reference time for this view. At any moment, the view will render a relative time period relative to the time set here.
Declaration
Swift
public var referenceDate: Date? { get set }
-
Undocumented
Declaration
Swift
public override init(frame: CGRect)
-
Undocumented
Declaration
Swift
public required init?(coder aDecoder: NSCoder)