简体   繁体   English

iPhone:可以在应用中打开/关闭定位服务吗?

[英]iPhone: Possible to turn on/off Location Services in app?

Does anyone know if it's possible to turn location services on and off from within an app? 有谁知道是否可以在应用程序中打开和关闭定位服务? Say I have an app, I select OK when asked if I want the app to use my current location, but later I decide that I want to disallow the app to use my location. 假设我有一个应用程序,当系统询问我是否希望该应用程序使用我的当前位置时,我选择“确定”,但是后来我决定我要禁止该应用程序使用我的位置。 I know there's a toggle in Settings that will turn the feature on and off per app, but I'm wondering if I can provide a means within my app for the user to manage that selection? 我知道“设置”中有一个切换按钮,可以打开和关闭每个应用程序功能,但是我想知道是否可以在我的应用程序中提供一种方法来让用户管理该选择?

您无法从该应用程序更改设置,但是可以进行切换以停止监视位置更改。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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