• iOS 跳转到系统设置的问题


    一:跳转方式到系统设置的方式

    iOS10之前:

       if ([[UIApplication sharedApplication] canOpenURL:url])

    {

         [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=Bluetooth"]]; 

    }

     

    iOS10之后:

       if ([[UIApplication sharedApplication] canOpenURL:url])

    {

       [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"App-Prefs:root=Bluetooth"] options:@{} completionHandler:nil];

    }

    二:跳转到本App的系统设置

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

     

    三:相关跳转URL路径

    prefs:root=General&path=About

    prefs:root=General&path=ACCESSIBILITY

    prefs:root=AIRPLANE_MODE

    prefs:root=General&path=AUTOLOCK

    prefs:root=General&path=USAGE/CELLULAR_USAGE

    prefs:root=Brightness

    prefs:root=Bluetooth

    prefs:root=General&path=DATE_AND_TIME

    prefs:root=FACETIME

    prefs:root=General

    prefs:root=General&path=Keyboard

    prefs:root=CASTLE

    prefs:root=CASTLE&path=STORAGE_AND_BACKUP

    prefs:root=General&path=INTERNATIONAL

    prefs:root=LOCATION_SERVICES

    prefs:root=ACCOUNT_SETTINGS

    prefs:root=MUSIC

    prefs:root=MUSIC&path=EQ

    prefs:root=MUSIC&path=VolumeLimit

    prefs:root=General&path=Network

    prefs:root=NIKE_PLUS_IPOD

    prefs:root=NOTES

    prefs:root=NOTIFICATIONS_ID

    prefs:root=Phone

    prefs:root=Photos

    prefs:root=General&path=ManagedConfigurationList

    prefs:root=General&path=Reset

    prefs:root=Sounds&path=Ringtone

    prefs:root=Safari

    prefs:root=General&path=Assistant

    prefs:root=Sounds

    prefs:root=General&path=SOFTWARE_UPDATE_LINK prefs:root=STORE

    prefs:root=TWITTER

    prefs:root=FACEBOOK

    prefs:root=General&path=USAGE

    prefs:root=VIDEO

    prefs:root=General&path=Network/VPN

    prefs:root=Wallpaper

    prefs:root=WIFI

    prefs:root=INTERNET_TETHERING

  • 相关阅读:
    ASP.NET MVC自定义Module记录管道事件执行顺序
    Pro ASP.NET MVC 5 Platform-第三章 ASP.NET 生命周期
    C#基础-反射
    C#7语法快速参考-第一章 Hello World
    两张趣图助你理解 HTTP 状态码!
    dev listbox使用
    aspose导出数据
    dev chart使用
    linq多个条件
    json返回数据多个是数组,单个就不是处理方案
  • 原文地址:https://www.cnblogs.com/nelsen-chen/p/6628138.html
Copyright © 2020-2023  润新知