Closed longxianlin closed 8 years ago
`` init() { self.calendar = NSCalendar.currentCalendar(); self.components = NSDateComponents(); }
init(calendar : NSCalendar, order : [String : Int]) { self.calendar = calendar self.components = calendar.components([.Year, .Month, .Day, .Hour, .Minute, .Minute], fromDate: NSDate()) self.order = order; }
/ override init() { super.init(); initialize(); self.frame = CGRect(x: 0, y: 0, width: 420, height: 216); }/
Please make a pull request and I will accept it.
Swift 2.0 support added. I will keep working on the features because you have shown interest in my project. Thank you for the feedback!
`` init() { self.calendar = NSCalendar.currentCalendar(); self.components = NSDateComponents(); }
/ override init() { super.init(); initialize(); self.frame = CGRect(x: 0, y: 0, width: 420, height: 216); }/