简体   繁体   中英

Invoke selector after user allows Location tracking for app

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM