2016-10-21 62 views
0

我一直在做一些關於CoreLocation的研究。最近,我遇到了一個問題,那就是[CLLocationManager locationServicesEnabled]總是在iOS中返回true 9.let我知道爲什麼會這樣..CLLocationManager locationServicesEnabled總是在iOS 9中返回TRUE

感謝

+0

檢查http://stackoverflow.com/questions/4034095/locationservicesenabled-always-return-yes或http: //stackoverflow.com/questions/13969368/why-cllocationmanager-always-returns-true –

回答

0

記住[的LocationManager locationServicesEnabled]是因爲iOS的4.0棄用。改爲使用類方法[CLLocationManager locationServicesEnabled]。

該應用特定的按鈕可以通過

[CLLocationManager authorizationStatus]被檢索