iOS,利用URL Schemes跳转到设置wifi、蜂窝移动网络页面
//跳转到设置WiFi
NSURL *url = [NSURL URLWithString:@"prefs:root=WIFI"];
if ([[UIApplication sharedApplication] canOpenURL:url])
{
[[UIApplication sharedApplication] openURL:url];
NSLog(@"open url");
}else{
NSLog(@"can not open");
}
//跳转到AppStore
NSURL *url = [NSURL URLWithString:@"itms-apps://itunes.apple.com/app/id1018221712"];
if ([[UIApplication sharedApplication] canOpenURL:url])
{
[[UIApplication sharedApplication] openURL:url];
NSLog(@"open url");
}else{
NSLog(@"can not open");
}