zoukankan      html  css  js  c++  java
  • swift 跳转到系统设置/网络/推送提醒

    使用App-Prefs做域跳转,代码如下:

    if let url = URL(string: "App-Prefs:root=NOTIFICATIONS_ID"), UIApplication.shared.canOpenURL(url) {
      UIApplication.shared.open(url, options: [:], completionHandler: nil)
    }
    

    类似的域还有:

    App-Prefs:root=WIFI
    App-Prefs:root=Bluetooth
    App-Prefs:root=MOBILE_DATA_SETTINGS_ID
    App-Prefs:root=INTERNET_TETHERING
    App-Prefs:root=Carrier
    App-Prefs:root=NOTIFICATIONS_ID
    App-Prefs:root=General
    App-Prefs:root=General&path=About
    App-Prefs:root=General&path=Keyboard
    App-Prefs:root=Wallpaper
    App-Prefs:root=SIRI
    App-Prefs:root=Privacy
    App-Prefs:root=SAFARI
    App-Prefs:root=MUSIC
    App-Prefs:root=MUSIC&path=com.apple.Music:EQ
    App-Prefs:root=Photos
    
  • 相关阅读:
    RabbitMQ
    RabbitMQ
    RabbitMQ
    RabbitMQ
    RabbitMQ
    RabbitMQ
    RabbitMQ
    .net 5.0
    redis
    分布式同步服务中间件
  • 原文地址:https://www.cnblogs.com/tbfirstone/p/11275752.html
Copyright © 2011-2022 走看看