课程所用到的图片也在Github https://github.com/JakeLin/ChineseZodiac/tree/master/ChineseZodiac/Images.xcassets
2014-11-28
大家好,请到问道去问问题,评论是不能回复的。 ?和!是Swfit语言Optional转实际值的过程,可以看看慕课的Swift相关的内容。由于Apple老是改SDK,有小量接口老改,会出现这张加?的问题。
2014-11-28
最新回答 / zhenv5
if you had such error: Can't find keyplane that supports type 4 for keyboard iPhone-Portrait-DecimalPadhow to fix it? iOS Simulator -> Hardware -> Keyboard -> uncheck Connect Hardware Keyboard
2014-11-28
let components = gregorian.components(.....
let age = components.year这个都报错 然后我
let components = gregorian?.components(NSCalendarUnit.YearCalendarUnit, fromDate: birthday.date, toDate: now, options: NSCalendarOptions(0)); let age = components?.year
都加了问号 就可以了
老师 帮忙解答下么 option 的变量后面 是要加 ! 有比较好的替代方式么
let age = components.year这个都报错 然后我
let components = gregorian?.components(NSCalendarUnit.YearCalendarUnit, fromDate: birthday.date, toDate: now, options: NSCalendarOptions(0)); let age = components?.year
都加了问号 就可以了
老师 帮忙解答下么 option 的变量后面 是要加 ! 有比较好的替代方式么
2014-11-28