NSDateComponents
Undocumented
-
Convenience initialiser for creating a new
NSDateComponets
object as they inherit fromNSObject
and therefore have reference and not value semantics.Declaration
Swift
public convenience init(units: NSCalendarUnit, fromComponents:NSDateComponents)
Parameters
components
The components to copy to the new object.
fromComponents
The object to copy the
units
from.