已采納回答 / liuyubobobo
謝謝你的支持:)根據(jù)官方說法,六月份的WWDC,蘋果會 introduce Swift 3.0 to public. 預計屆時XCode8的beta版會放出,讓大家嘗試使用Swift3.0。正式版本至少要9月份才會放出,搞不好會是年底。至于課程3.0化的問題,我現(xiàn)在能做的也只是在Swift3.0正式發(fā)布后,將這個課程的官方github里的源代碼:https://github.com/liuyubobobo/Play-with-Swift-2?升級為支持Swift3,與此同時,在已有的2.0課程相應的評論區(qū)...
2016-05-29
講師回答 / liuyubobobo
因為解包可能失敗啊。if語句的意義就是,不僅要考慮解包成功的后續(xù)邏輯,還告訴開發(fā)者,這個解包成果是if的(只是如果),有必要的話要考慮else哦。
2016-05-27
講師回答 / liuyubobobo
對于可選型,里面有可能存儲著nil。如果想將可選型轉(zhuǎn)化為一個明確的類型,比如通過Int?轉(zhuǎn)化為Int,就需要解包。
2016-05-26
已采納回答 / liuyubobobo
It's a great question! I really want to introduce more about these kinds of topics, as well as more concepts about Function Programming in the future advanced tutorial video. Just look forwarding to it :)Hint: We can use extension, which we will introduce...
2016-05-22
講師回答 / liuyubobobo
現(xiàn)在第三季已經(jīng)完整上線了,快快去學習吧!http://t.imooc.com/comment/663?謝謝你的支持!
2016-05-22
已采納回答 / liuyubobobo
這個問題涉及到swift語言調(diào)用函數(shù)的語法規(guī)則。先這么記,學習到后面“函數(shù)”的時候會詳細講哦。學完“函數(shù)”一章再回來看就一定懂了!
2016-05-08