如何打开位置服务 [英] How To Turn Location Service On

查看:128
本文介绍了如何打开位置服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当有人第一次拒绝时,如何从实际应用中重新启用位置服务。我可以选择关闭或打开它。

How can I turn Location Services back on from the actual app when someone declined the first time. I have an option to turn it off or on.

推荐答案

您只能提示他们到屏幕打开位置服务,如下所示:

You can only prompt them to the screen to turn on location services like so:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"prefs:root=LOCATION_SERVICES"]];

这篇关于如何打开位置服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆