landpacks-MacBook-Pro:SwiftWeather landpack$ pod install
Analyzing dependencies
Creating shallow clone of spec repo `master` from `https://github.com/CocoaPods/Specs.git`
Analyzing dependencies
Creating shallow clone of spec repo `master` from `https://github.com/CocoaPods/Specs.git`
2015-07-11
發(fā)現(xiàn)好多同學(xué)無法編譯代碼,原因是在新版的Swift 1.2以上版本明確要求了CLLocation 這個(gè)類型不可以是可選型,所以在這里需要對(duì)location這個(gè)變量使用!進(jìn)行解包,大家注意一下,方法如下:
var location:CLLocation = locations[locations.count - 1] as! CLLocation
這樣就不會(huì)抱錯(cuò)了,大家加油!
var location:CLLocation = locations[locations.count - 1] as! CLLocation
這樣就不會(huì)抱錯(cuò)了,大家加油!
2015-06-27
存在啊,沒問題的:https://github.com/JakeLin/SwiftWeather/tree/master/Swift%20Weather
2015-06-25