let components = gregorian?.components(NSCalendarUnit.CalendarUnitYear, fromDate: birthday.date, toDate: now, options: NSCalendarOptions(0))
按警告替换即可
Warning:'YearCalendarUnit' was deprecated in iOS version 8.0: Use NSCalendarUnitYear instead
参考资料:http://ios.ch3cooh.jp
按警告替换即可
Warning:'YearCalendarUnit' was deprecated in iOS version 8.0: Use NSCalendarUnitYear instead
参考资料:http://ios.ch3cooh.jp
2015-05-06
@IBAction func heightChanged(sender: UISlider) {
high.text = "\(Int(sender.value))厘米"
}
其实只需要一行代码
high.text = "\(Int(sender.value))厘米"
}
其实只需要一行代码
2015-05-06
todos.append(todo) 报错 吧数据添加到数组里报错咯 报错原因 NSArray is not a subtype of TodeModel
2015-04-30