var gregorian = NSCalendar(calendarIdentifier: NSCalendarIdentifierGregorian)
var now:NSData = NSData()
var nowyear = gregorian?.components(NSCalendarUnit.Year, fromDate: now)
出现错误
Cannot convert value of type 'NSData' to expected argument type 'NSDate'
求解为什么。。。。。