美文网首页iOS开发
iOS开发app跳转到系统设置

iOS开发app跳转到系统设置

作者: 三好夫人 | 来源:发表于2018-02-05 15:32 被阅读5次

    //想要实现应用内跳转到系统设置界面功能,需要先在Targets-Info-URL Types-URL Schemes中添加prefs

    -(void)OpenAppSetting{

    //Wifi
    

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

    // 蓝牙
    // if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"prefs:root=General"]])
    // {
    // [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=General"]];
    // }

    //通用
    

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

    //跳转到定位服务
    

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

    //跳转到通知
    

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

    //其他设置
    

    // @{@"系统设置":@"prefs:root=INTERNET_TETHERING"},
    // 7 @{@"WIFI设置":@"prefs:root=WIFI"},
    // 8 @{@"蓝牙设置":@"prefs:root=Bluetooth"},
    // 9 @{@"系统通知":@"prefs:root=NOTIFICATIONS_ID"},
    // 10 @{@"通用设置":@"prefs:root=General"},
    // 11 @{@"显示设置":@"prefs:root=DISPLAY&BRIGHTNESS"},
    // 12 @{@"壁纸设置":@"prefs:root=Wallpaper"},
    // 13 @{@"声音设置":@"prefs:root=Sounds"},
    // 14 @{@"隐私设置":@"prefs:root=privacy"},
    // 15 @{@"APP Store":@"prefs:root=STORE"},

    }

    相关文章

      网友评论

        本文标题:iOS开发app跳转到系统设置

        本文链接:https://www.haomeiwen.com/subject/infizxtx.html