运行时一片黑的同学,请在Attributes inspector 下的 View Controller 勾选 Is Initial View Controller
2015-07-18
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
最新回答 / 慕数据2297163
platform :ios, '8.0'use_frameworks!target 'MyApp' do pod 'AFNetworking', '~> 2.6' pod 'ORStackView', '~> 3.0' pod 'SwiftyJSON', '~> 2.3'end应该是没有指定项目target 'MyApp' do,需要把MyApp替换成你的项目名称
2015-07-06
发现好多同学无法编译代码,原因是在新版的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