如何从设置屏幕打开位置服务屏幕? [英] How to open Location services screen from setting screen?
本文介绍了如何从设置屏幕打开位置服务屏幕?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想以编程方式打开位置服务屏幕以打开服务.
I want to open location service screen programmatically to turn on service.
推荐答案
步骤1:点击项目名称>>目标>>信息>>网址类型
Step 1: Click on project name >> target>> info >> url Types
第2步:
-(IBAction)openSettingViewToEnableLocationService:(id)sender
{
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=LOCATION_SERVICES"]];
}
这篇关于如何从设置屏幕打开位置服务屏幕?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文