iOS 跳转至设置界面

iOS 跳转至设置界面_第1张图片

调用方式:iOS 10.3.3 下测试通过

    NSURL *settingUrl = [NSURL URLWithString:@"App-Prefs:root=xxxxx"];
    [[UIApplication sharedApplication] openURL:settingUrl];

具体参数待验证,细节查看官方文档:


关于手机   About — General&path=About
可访问性   Accessibility — General&path=ACCESSIBILITY
飞行模式   Airplane Mode On — AIRPLANE_MODE
自动锁定(锁屏间隔) Auto-Lock — General&path=AUTOLOCK
亮度        Brightness — Brightness
蓝牙        Bluetooth — General&path=Bluetooth
日期时间  Date & Time — General&path=DATE_AND_TIME
FaceTime  FACETIME
通用         General — General
键盘         Keyboard — General&path=Keyboard
iCloud — CASTLE
iCloud Storage & Backup — CASTLE&path=STORAGE_AND_BACKUP
International — General&path=INTERNATIONAL
定位服务  Location Services — LOCATION_SERVICES
Music — MUSIC
Music Equalizer — MUSIC&path=EQ
Music Volume Limit — MUSIC&path=VolumeLimit
Network — General&path=Network
Nike + iPod — NIKE_PLUS_IPOD
Notes — NOTES
Notification — NOTIFICATIONS_ID
通知 NOTIFICATIONS_ID&path=bundleid

Profile — General&path=ManagedConfigurationList
还原       Reset — General&path=Reset
浏览器    Safari — Safari
Siri — General&path=Assistant
Sounds — Sounds
Software Update — General&path=SOFTWARE_UPDATE_LINK
Store — STORE
Twitter — TWITTER

VPN — General&path=VPN
Wallpaper — Wallpaper
Wi-Fi — WIFI


蜂窝移动 络 MOBILE_DATA_SETTINGS_ID
个 热点 INTERNET_TETHERING
VPN VPN
运营商 Carrier

隐私 Privacy
定位服务 Privacy&path=LOCATION

通  General
关于本机 General&path=About
键盘 General&path=Keyboard
辅助功能 General&path=ACCESSIBILITY
语 与地区 General&path=INTERNATIONAL
还原 General&path=Reset
墙纸 Wallpaper
Siri SIRI

Safari SAFARI

照相与照相机 Photos
FaceTime FACETIME
电池电  BATTERY_USAGE
存储空间 General&path=STORAGE_ICLOUD_USAGE/DEVICE_STORAGE 显示与亮度 DISPLAY
声 设置 Sounds
App Store STORE
iCloud CASTLE
语 设置 General&path=INTERNATIONAL


会跳转至通用界面 :
  Phone — Phone
  Photos — Photos
  Usage — General&path=USAGE

参考资料:
iOS-URL-Schemes
关于iOS应用跳转“prefs:root”无效的问题(包括iOS10)

(完)

你可能感兴趣的:(iOS 跳转至设置界面)