CLLocationManager locationServicesEnabled总是在iOS 9中返回TRUE
问题描述:
我一直在做一些关于CoreLocation的研究。最近,我遇到了一个问题,那就是[CLLocationManager locationServicesEnabled]总是在iOS中返回true 9.let我知道为什么会这样..CLLocationManager locationServicesEnabled总是在iOS 9中返回TRUE
感谢
答
记住[的LocationManager locationServicesEnabled]是因为iOS的4.0弃用。改为使用类方法[CLLocationManager locationServicesEnabled]。
该应用特定的按钮可以通过
[CLLocationManager authorizationStatus]被检索
检查http://*.com/questions/4034095/locationservicesenabled-always-return-yes或http: //*.com/questions/13969368/why-cllocationmanager-always-returns-true –