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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM