今天把xcode 更新到6.1只后
let gregorian = NSCalendar(calendarIdentifier: NSCalendarIdentifierGregorian) let now = NSDate() let components = gregorian.components(NSCalendarUnit.YearCalendarUnit, fromDate: birthday.date, toDate: now, options: NSCalendarOptions(0)) let age = components.year
编译不通过,老师能解释下为什么么?