//跳轉隱私拍照
//@"prefs:root=Privacy&path=PHOTOS" 相冊權限
NSString * urlString = @"App-Prefs:root=Privacy&path=CAMERA";
if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:urlString]]) {
if (IS_IOS_(10)) {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlString] options:@{} completionHandler:nil];
} else {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=Privacy&path=CAMERA"]];
}
}
1860174-e4ab5f31a58c9e00.png
電池電量 Prefs:root=BATTERY_USAGE
通用設置 Prefs:root=General
存儲空間 Prefs:root=General&path=STORAGE_ICLOUD_USAGE/DEVICE_STORAGE
蜂窩數據 Prefs:root=MOBILE_DATA_SETTINGS_ID
Wi-Fi 設置 Prefs:root=WIFI
藍牙設置 Prefs:root=Bluetooth
定位設置 Prefs:root=Privacy&path=LOCATION
輔助功能 Prefs:root=General&path=ACCESSIBILITY
關于手機 Prefs:root=General&path=About
鍵盤設置 Prefs:root=General&path=Keyboard
顯示設置 Prefs:root=DISPLAY
聲音設置 Prefs:root=Sounds App Store
設置 Prefs:root=STORE
墻紙設置 Prefs:root=Wallpaper
打開電話 Mobilephone://
世界時鐘 Clock-worldclock://
鬧鐘 Clock-alarm://
秒表 Clock-stopwatch://
倒計時 Clock-timer://
打開相冊 Photos://
About — prefs:root=General&path=About
Accessibility — prefs:root=General&path=ACCESSIBILITY
Airplane Mode On — prefs:root=AIRPLANE_MODE
Auto-Lock — prefs:root=General&path=AUTOLOCK
Brightness — prefs:root=Brightness
Bluetooth — prefs:root=General&path=Bluetooth
Date & Time — prefs:root=General&path=DATE_AND_TIME
FaceTime — prefs:root=FACETIME
General — prefs:root=General
Keyboard — prefs:root=General&path=Keyboard
iCloud — prefs:root=CASTLE
iCloud Storage & Backup — prefs:root=CASTLE&path=STORAGE_AND_BACKUP
International — prefs:root=General&path=INTERNATIONAL
Location Services — prefs:root=LOCATION_SERVICES
Music — prefs:root=MUSIC
Music Equalizer — prefs:root=MUSIC&path=EQ
Music Volume Limit — prefs:root=MUSIC&path=VolumeLimit
Network — prefs:root=General&path=Network
Nike + iPod — prefs:root=NIKE_PLUS_IPOD
Notes — prefs:root=NOTES
Notification — prefs:root=NOTIFICATIONS_ID
Phone — prefs:root=Phone
Photos — prefs:root=Photos
Profile — prefs:root=General&path=ManagedConfigurationList
Reset — prefs:root=General&path=Reset
Safari — prefs:root=Safari
Siri — prefs:root=General&path=Assistant
Sounds — prefs:root=Sounds
Software Update — prefs:root=General&path=SOFTWARE_UPDATE_LINK
Store — prefs:root=STORE
Twitter — prefs:root=TWITTER
Usage — prefs:root=General&path=USAGE
VPN — prefs:root=General&path=Network/VPN
Wallpaper — prefs:root=Wallpaper
Wi-Fi — prefs:root=WIFI
//撥打系統電話
NSString *tel = [NSString stringWithFormat:@"telprompt://%@",self.numberTextFiled.text];
[[UIApplication sharedApplication]openURL:[NSURL URLWithString:tel]];
//發(fā)送系統短信
NSURL *url = [NSURL URLWithString:@"sms://1383838438"];
[[UIApplication sharedApplication] openURL:url];