使用beta4時(shí),func updateUISuccess(jsonResult:NSDictionary!) { if let tempResult = jsonResult["main"]?["temp"]? as? Double { 會(huì)報(bào)錯(cuò):Type 'String' does not conform to protocol 'NSCopying'

gxj
2014-07-28
2 回答
舉報(bào)
0/150
提交
取消
2022-03-27
老師也會(huì)直接參與回答的那個(gè)知識(shí)點(diǎn)不懂,多多練習(xí)。
2014-07-31
請(qǐng)看看github上的代碼 https://github.com/JakeLin/SwiftWeather/blob/master/Swift%20Weather/ViewController.swift#L79 ,由于Apple更新了Swift的編譯器,所以,視頻的代碼在Beta1上可以編譯,在新版本就編譯不了,請(qǐng)看github上最新的代碼。