简体   繁体   中英

How to turn off the Location Services dialogue in iOS?

I need to disable the Location Services dialogue automatically. Actually I am using the Location Services for Flurry in my app but I need to disable the dialogue programmatically by which it will not ask the user for location service.

I am using this but it doesn't help me to solve my problem.

 [locationManager stopUpdatingLocation];

Is there any way to disable the dialogue box programmatically?

Thanks for the answers, I found a solution to stop the location dialogue by commenting this line,

 //    [locationManager startUpdatingLocation];

and it solved my problem. Thank you guys.

You can't . If your app using the location service definitely it will ask the user's permission. You dont have any control over that

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