• IOS系统设置页面跳转


    目录:

    • 跳转
    • iOS10- 版本跳转url转
    • iOS10+ 版本跳转url转

    跳转符

    跳转到系统设置界面代码:

    // 自己应用的设置界面:url = UIApplicationOpenSettingsURLString
    func switchToSystemSettingsUrl(prefs : String) {
        let url = URL(string: prefs)!
        if #available(iOS 10.0, *) {
            if UIApplication.shared.canOpenURL(url) {
                UIApplication.shared.open(url, options: [:], completionHandler: { (sucess) in
                    if sucess {
                        print("ok")
                    }
                })
            } 
        }else {
            // Fallback on earlier versions
            if UIApplication.sharedApplication().canOpenURL(settingUrl) {
                UIApplication.sharedApplication().openURL(settingUrl)
            }
        }
    }
    iOS10- 版本跳转url
    About              — prefs:root=General&path=About  
    Accessibility      — prefs:root=General&path=ACCESSIBILITY  
    Airplane Mode On   — prefs:root=AIRPLANE_MODE  
    Auto-Lock          — prefs:root=General&path=AUTOLOCK  
    Brightness         — prefs:root=Brightness  
    Bluetooth          — prefs:root=General&path=Bluetooth  
    Date & Time        — prefs:root=General&path=DATE_AND_TIME  
    FaceTime           — prefs:root=FACETIME  
    General            — prefs:root=General  
    Keyboard           — prefs:root=General&path=Keyboard  
    iCloud             — prefs:root=CASTLE  
    iCloud Storage & Backup — prefs:root=CASTLE&path=STORAGE_AND_BACKUP  
    International      — prefs:root=General&path=INTERNATIONAL  
    Location Services  — prefs:root=LOCATION_SERVICES  
    Music              — prefs:root=MUSIC  
    Music Equalizer    — prefs:root=MUSIC&path=EQ  
    Music Volume Limit — prefs:root=MUSIC&path=VolumeLimit  
    Network            — prefs:root=General&path=Network  
    Nike + iPod        — prefs:root=NIKE_PLUS_IPOD  
    Notes              — prefs:root=NOTES  
    Notification       — prefs:root=NOTIFICATIONS_ID  
    Phone              — prefs:root=Phone  
    Photos             — prefs:root=Photos  
    Profile            — prefs:root=General&path=ManagedConfigurationList  
    Reset              — prefs:root=General&path=Reset  
    Safari             — prefs:root=Safari  
    Siri               — prefs:root=General&path=Assistant  
    Sounds             — prefs:root=Sounds  
    Software Update    — prefs:root=General&path=SOFTWARE_UPDATE_LINK  
    Store              — prefs:root=STORE  
    Twitter            — prefs:root=TWITTER  
    Usage              — prefs:root=General&path=USAGE  
    VPN                — prefs:root=General&path=Network/VPN  
    Wallpaper          — prefs:root=Wallpaper  
    Wi-Fi              — prefs:root=WIFI  
    Setting            — prefs:root=INTERNET_TETHERING
    iOS10+ 版本跳转url
    Wi-Fi              — App-Prefs:root=WIFI
    Bluetooth          — App-Prefs:root=Bluetooth
    Mobile Data        — App-Prefs:root=MOBILE_DATA_SETTINGS_ID
    Setting            — App-Prefs:root=INTERNET_TETHERING
    Carrier            — App-Prefs:root=Carrier
    Notification       — App-Prefs:root=NOTIFICATIONS_ID
    General            — App-Prefs:root=General
    About              — App-Prefs:root=General&path=About
    Keyboard           — App-Prefs:root=General&path=Keyboard
    Accessibility      — App-Prefs:root=General&path=ACCESSIBILITY
    International      — App-Prefs:root=General&path=INTERNATIONAL
    Reset              — App-Prefs:root=Reset
    Wallpaper          — App-Prefs:root=Wallpaper
    Siri               — App-Prefs:root=SIRI
    Privacy            — App-Prefs:root=Privacy
    Location Services  — App-Prefs:root=LOCATION_SERVICES
    Safari             — App-Prefs:root=SAFARI
    Music              — App-Prefs:root=MUSIC
    Music Equalizer    — App-Prefs:root=MUSIC&path=com.apple.Music:EQ
    Photos             — App-Prefs:root=Photos
    FaceTime           — App-Prefs:root=FACETIME
    声明:该系列内容均来自网络或电子书籍,只做学习总结!
  • 相关阅读:
    实验10:Problem D: STL——管道二
    实验10:Problem C: STL——呵呵型自动机
    实验10:Problem B: STL——哈哈型自动机
    实验10:Problem A: STL——整理唱片
    实验9:Problem I: 学生干部虚基类
    hihocoder1994 树与落叶 DFS+前缀和+二分
    [Offer收割]编程练习赛108
    【模板】左偏树(可并堆)
    P2993 [FJOI2014]最短路径树问题 点分治+最短路
    E
  • 原文地址:https://www.cnblogs.com/Youhei/p/6892867.html
Copyright © 2020-2023  润新知