我可以用什么来检查是否授予了权限?。所以最基本的是一个api,它告诉我是否授予了权限。
检查 CLLocationManager 的 locationServicesEnabled CLLocationManagerDelegate 的 locationManager: didFailWithError: kCLErrorDenied
CLLocationManager
locationServicesEnabled
CLLocationManagerDelegate
locationManager: didFailWithError:
kCLErrorDenied
阅读苹果的 [CLLocationManagerDelegate [文档] 1
[CLLocationManagerDelegate