zoukankan      html  css  js  c++  java
  • 在iOS应用程序中打开设备设置界面及其中某指定的选项界面

     

    摘自:http://stackoverflow.com/questions/8246070/ios-launching-settings-restrictions-url-scheme

    1  [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=General"]];
    2  
    3 
    4 [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=General&path=Restrictions"]];

    一些其他可用的参数:

     

    List of currently known URLs in the Settings app:

    •  1 prefs:root=General&path=About
       2 prefs:root=General&path=ACCESSIBILITY
       3 prefs:root=AIRPLANE_MODE
       4 prefs:root=General&path=AUTOLOCK
       5 prefs:root=General&path=USAGE/CELLULAR_USAGE
       6 prefs:root=Brightness
       7 prefs:root=General&path=Bluetooth
       8 prefs:root=General&path=DATE_AND_TIME
       9 prefs:root=FACETIME
      10 prefs:root=General
      11 prefs:root=General&path=Keyboard
      12 prefs:root=CASTLE
      13 prefs:root=CASTLE&path=STORAGE_AND_BACKUP
      14 prefs:root=General&path=INTERNATIONAL
      15 prefs:root=LOCATION_SERVICES
      16 prefs:root=ACCOUNT_SETTINGS
      17 prefs:root=MUSIC
      18 prefs:root=MUSIC&path=EQ
      19 prefs:root=MUSIC&path=VolumeLimit
      20 prefs:root=General&path=Network
      21 prefs:root=NIKE_PLUS_IPOD
      22 prefs:root=NOTES
      23 prefs:root=NOTIFICATIONS_ID
      24 prefs:root=Phone
      25 prefs:root=Photos
      26 prefs:root=General&path=ManagedConfigurationList
      27 prefs:root=General&path=Reset
      28 prefs:root=Sounds&path=Ringtone
      29 prefs:root=Safari
      30 prefs:root=General&path=Assistant
      31 prefs:root=Sounds
      32 prefs:root=General&path=SOFTWARE_UPDATE_LINK
      33 prefs:root=STORE
      34 prefs:root=TWITTER
      35 prefs:root=General&path=USAGE
      36 prefs:root=VIDEO
      37 prefs:root=General&path=Network/VPN
      38 prefs:root=Wallpaper
      39 prefs:root=WIFI
      40 prefs:root=INTERNET_TETHERING
  • 相关阅读:
    PS
    div 解决高度塌陷
    gradle Error:Cause: unable to find valid certification path to requested target
    HTML
    前端路线图
    css 选择器
    css-day01
    Python图像处理 | 把图像中的白色变成透明
    X-Frame-Options(点击劫持)
    python两张图片显示在一张图上
  • 原文地址:https://www.cnblogs.com/tig666666/p/5805864.html
Copyright © 2011-2022 走看看