[英]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.