最新回答 / 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