简体   繁体   English

如何直接为ios11打开位置隐私设置页面?由于以下代码不起作用,因此仅打开设置屏幕

[英]How to open Location Privacy Setting Page directly for ios11 ?As below code is not working , it opens setting screen only

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@“ App-Prefs:root = Privacy&path = LOCATION”]选项:@ {} completeHandler:无];

Try Below Code. 尝试下面的代码。 It will take to App Specific Settings. 它将转到“应用程序特定设置”。

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];

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

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