IOS 跳转系统设置

//跳转隐私拍照
//@"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"]];
            }
        }
IOS 跳转系统设置_第1张图片
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]];
//发送系统短信
NSURL *url = [NSURL URLWithString:@"sms://1383838438"];
 [[UIApplication sharedApplication] openURL:url];

你可能感兴趣的:(IOS 跳转系统设置)