iOS开发之如何跳到系统设置里的各种设置界面(定位、蓝牙、音乐等)

跳到更多设置界面

//定位服务设置界面

NSURL *url = [NSURL URLWithString:@"prefs:root=LOCATION_SERVICES"];
if ([[UIApplication sharedApplication] canOpenURL:url])
{
    [[UIApplication sharedApplication] openURL:url];
}

//FaceTime设置界面

NSURL *url = [NSURL URLWithString:@"prefs:root=FACETIME"];
if ([[UIApplication sharedApplication] canOpenURL:url])
{
    [[UIApplication sharedApplication] openURL:url];
}

//音乐设置界面

NSURL *url = [NSURL URLWithString:@"prefs:root=MUSIC"];
if ([[UIApplication sharedApplication] canOpenURL:url])
{
    [[UIApplication sharedApplication] openURL:url];
}

//墙纸设置界面

NSURL *url = [NSURL URLWithString:@"prefs:root=Wallpaper"];
if ([[UIApplication sharedApplication] canOpenURL:url])
{
    [[UIApplication sharedApplication] openURL:url];
}

//蓝牙设置界面

   NSURL *url = [NSURL URLWithString:@"prefs:root=Bluetooth"];
   if ([[UIApplication sharedApplication] canOpenURL:url])
   {
      [[UIApplication sharedApplication] openURL:url];
   }

//iCloud设置界面

NSURL *url = [NSURL URLWithString:@"prefs:root=CASTLE"];
if ([[UIApplication sharedApplication] canOpenURL:url]
{
   [[UIApplication sharedApplication] openURL:url];
}

你可能感兴趣的:(iOS开发之如何跳到系统设置里的各种设置界面(定位、蓝牙、音乐等))