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
发现好多同学无法编译代码,原因是在新版的Swift 1.2以上版本明确要求了CLLocation 这个类型不可以是可选型,所以在这里需要对location这个变量使用!进行解包,大家注意一下,方法如下:
var location:CLLocation = locations[locations.count - 1] as! CLLocation
这样就不会抱错了,大家加油!
var location:CLLocation = locations[locations.count - 1] as! CLLocation
这样就不会抱错了,大家加油!
2015-06-27
存在啊,没问题的:https://github.com/JakeLin/SwiftWeather/tree/master/Swift%20Weather
2015-06-25