最新回答 / ysnows
建议结合老师最新的源码学习:请求地理位置信息代码如下 : func requestLocation() { locationManager.requestWhenInUseAuthorization() locationManager.requestLocation() }infolist中添加的如下:NSLocationWhenInUseUsageDescription :Location is required to retrieve the weather info...
2016-04-10
最赞回答 / 来自蒙塔基的罡蛋
在failure: { (operation: AFHTTPRequestOperation!, error: NSError!) in println("Error: " + error.localizedDescription) })这里 改为failure: { (operation: AFHTTPRequestOperation?, error: NSError) in ...
2015-12-02
最赞回答 / qq_风的味道
找到原因了,let locationManager:CLLocationManager = CLLocationManager()没有定义成成员变量,有些不解
2015-08-17