zoukankan      html  css  js  c++  java
  • 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
    声明:该系列内容均来自网络或电子书籍,只做学习总结!
  • 相关阅读:
    PerfDog WEB端使用手册
    PerfDog4.0探索,支持用户自建web云
    无AI不测试:人工智能时代背景下,如何发展与应用自动化测试?
    性能测试实践 | PerfDog助力微信小游戏/小程序性能调优
    mysql面向过程学习
    阿里云操作记录
    socket网络编程
    学习慕课广告系统
    xinhuadouxxx总结
    maven+springboot+mybatis快速搭建简单使用
  • 原文地址:https://www.cnblogs.com/Youhei/p/6892867.html
Copyright © 2011-2022 走看看