最贊回答 / qq_風(fēng)的味道
找到原因了,let locationManager:CLLocationManager = CLLocationManager()沒有定義成成員變量,有些不解
2015-08-17
老師很忙啊,有時(shí)間有心情的時(shí)候請更新點(diǎn)網(wǎng)絡(luò)相關(guān)的內(nèi)容,= =,另外一個(gè)課程意見看完了
2015-08-12
swift2.0后請使用var location:CLLocation = locations[locations.count-1] as! CLLocation
2015-08-03
func ios8() -> Bool{
var systemVersion = (UIDevice.currentDevice().systemVersion as NSString).floatValue
println(systemVersion)
return systemVersion >= 8.0
}
var systemVersion = (UIDevice.currentDevice().systemVersion as NSString).floatValue
println(systemVersion)
return systemVersion >= 8.0
}
2015-08-03
如果輸出Error Domain=kCLErrorDomain Code=0 "The operation couldn’t be completed. (kCLErrorDomain error 0.)",是因?yàn)槟M器設(shè)置不支持地理位置變化。 可以在模擬工具的菜單欄,Debug->Location->Freeway Device
2015-08-03
運(yùn)行時(shí)一片黑的同學(xué),請?jiān)贏ttributes inspector 下的 View Controller 勾選 Is Initial View Controller
2015-07-18