简体   繁体   English

iOS 5之前的位置服务和设置

[英]Location Services and Settings prior to iOS 5

I have a quick question is there a system call I can make that will provide an alert with the option to go to settings in case location services have been disabled on iOS versions prior to 5? 我有一个简单的问题是,我可以进行系统调用,如果在5之前的iOS版本上禁用了位置服务,将提供一个警告选项以进行设置吗?

As far as I know there is no URL scheme for the settings app before 5.0. 据我所知,5.0之前的设置应用程序没有URL方案。

Any ideas? 有任何想法吗?

You are right. 你是对的。 There is no URL scheme for that. 没有URL方案。

You can refer these threads : 你可以参考这些主题:

UIAlertView like "Turn On Location Services to allow maps to determine your location". UIAlertView就像“打开位置服务以允许地图确定您的位置”。 Settings + Cancel 设置+取消

Programmatically opening the settings app (iPhone) 以编程方式打开设置应用程序(iPhone)

is it possible to open Settings App using openURL? 是否可以使用openURL打开设置应用程序?

Also, you can check your CLLocationManagerDelegate didFailWithError method for error code. 此外,您可以检查CLLocationManagerDelegate didFailWithError方法以获取错误代码。 If the error code is kCLErrorDenied, you know that Location services are not enabled 如果错误代码为kCLErrorDenied,则表示您未启用位置服务

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

相关问题 如何在iOS 4.2之前检查是否为特定应用启用了位置服务? - How to check if location services are enabled for a particular app prior to iOS 4.2? iOS 6中的ALAssetsLibrary和Location Services - ALAssetsLibrary and Location Services in iOS 6 当用户关闭并打开iPhone设置中的位置服务时,iOS应用会自动重新启动 - iOS app relaunches automatically when user turn off and on the location services in iPhone settings iOS设置(隐私 - >位置服务 - >选择我的应用 - >更改允许访问)崩溃 - iOS settings (Privacy -> Location services -> select my app -> change allow access) crashed 位置服务在iOS 11中不起作用 - Location Services not working in iOS 11 iOS位置服务访问和系统频繁位置 - iOS Location Services visits and system Frequent Location 持续检查ios中启用的位置服务 - continously check for location services enabled in ios 是否仅在iOS中的时区需要位置服务提示 - Is the location services prompt needed for only timezone in ios iOS,CLLocationManager:显示“重新启用位置服务”弹出窗口 - iOS, CLLocationManager: Displaying the “reenable Location Services” Popup 我的应用程序未显示在位置服务下(设置->隐私) - My application is not showing under location services (Settings->Privacy)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM