When an app requests for CLLocationManager
location for the first time, an alertView
pops up asking the user to allow/deny location tracking. How do I invoke a selector when the user selects OK ?
使用CLLocationManager
委托方法locationManager:didChangeAuthorizationStatus:
在用户更改状态时得到通知。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.