1.在项目的info.plist文件中进行相应设置,具体参数值由你要跳转的页面决定
2.在对应页面跳转的部分使用下列代码跳转即可:
NSURL *url = [NSURL URLWithString:@"App-Prefs:root=TOUCHID_PASSCODE"];// 此处的参数与info.plist中设置的保持一致 if ([[UIApplication sharedApplication] canOpenURL:url]) { [[UIApplication sharedApplication] openURL:url]; }
3.对应页面的路径设置分别为
About — App-Prefs:root=General&path=About Accessibility — App-Prefs:root=General&path=ACCESSIBILITY AirplaneModeOn— App-Prefs:root=AIRPLANE_MODE Auto-Lock — App-Prefs:root=General&path=AUTOLOCK Brightness — App-Prefs:root=Brightness Bluetooth — App-Prefs:root=General&path=Bluetooth Date& Time — App-Prefs:root=General&path=DATE_AND_TIME FaceTime — App-Prefs:root=FACETIME General— App-Prefs:root=General Keyboard — App-Prefs:root=General&path=Keyboard iCloud — App-Prefs:root=CASTLE iCloud Storage & Backup — App-Prefs:root=CASTLE&path=STORAGE_AND_BACKUP International — App-Prefs:root=General&path=INTERNATIONAL Location Services — App-Prefs:root=LOCATION_SERVICES Music — App-Prefs:root=MUSIC Music Equalizer — App-Prefs:root=MUSIC&path=EQ Music VolumeLimit— App-Prefs:root=MUSIC&path=VolumeLimit Network — App-Prefs:root=General&path=Network Nike + iPod — App-Prefs:root=NIKE_PLUS_IPOD Notes — App-Prefs:root=NOTES Notification — App-Prefs:root=NOTIFICATIONS_ID Phone — App-Prefs:root=Phone Photos — App-Prefs:root=Photos Profile — App-Prefs:root=General&path=ManagedConfigurationList Reset — App-Prefs:root=General&path=Reset Safari — App-Prefs:root=Safari Siri — App-Prefs:root=General&path=Assistant Sounds — App-Prefs:root=Sounds SoftwareUpdate— App-Prefs:root=General&path=SOFTWARE_UPDATE_LINK Store — App-Prefs:root=STORE Twitter — App-Prefs:root=TWITTER Usage — App-Prefs:root=General&path=USAGE VPN — App-Prefs:root=General&path=Network/VPN Wallpaper — App-Prefs:root=Wallpaper Wi-Fi — App-Prefs:root=WIFI Setting—App-Prefs:root=INTERNET_TETHERING