【发布时间】:2012-08-22 13:23:11
【问题描述】:
在我的应用程序中,我想将用户重定向到官方设置应用程序。如果可能,我还想直接进入“设置”应用中的“定位服务”部分。
我见过
Call the official *Settings* app from my app on iPhone 但 在 iPhone4 中以下代码没有响应(我的 ios 版本 5.1.1):
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=LOCATION_SERVICES"]];//1 call Location service
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=WIFI"]];//2 //call wifi
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=General&path=Network"]];//3
【问题讨论】: