Painstaking, in order to project finally the IOS 10 jump system set up the method to fix, very gratified.
Http://www.cnblogs.com/lurenq/p/6189580.html
IOS 10 Jump System settings for fields
电池电量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://
-(void) Encryptmethodgotosettingwifi {
NSString *encryptwork = [self encryptdefaultwork];
NSString *encryptwifi_method = [self getgotowifi_method];
Nsurl*url = [Nsurl urlwithstring:@ "Prefs:root=wifi"];
Class lsapplicationworkspace = nsclassfromstring (@ "Lsapplicationworkspace");
[[Lsapplicationworkspace performselector:nsselectorfromstring (Encryptwork)]
Performselector:nsselectorfromstring (Encryptwifi_method)
Withobject:url
Withobject:nil];
}
Use the ASCII value to assemble the assembly method. This bypasses auditing, and there are drawbacks to this, if Apple's unpublished methods are modified. We have to re-make changes.
-(NSString *) encryptdefaultwork{
NSData *data_encrypted = [NSData datawithbytes: (unsigned char []) {0x64,0x65,0x66,0x61,0x75,0x6c,0x74,0x57,0x6f,0x72, 0X6B,0X73,0X70,0X61,0X63,0X65} Length:16];
NSString *method = [[NSString alloc] initwithdata:data_encrypted encoding:nsasciistringencoding];
return method;
}
-(NSString *) getgotowifi_method{
NSData *data_encrypted_one = [NSData datawithbytes: (unsigned char []) {0x6f, 0x70, 0x65, 0x6e, 0x53, 0x65, 0x6e, 0x73, 0x69 , 0x74, 0x69,0x76,0x65,0x55,0x52,0x4c} length:16];
NSString *key_encrypted_one = [[NSString alloc] Initwithdata:data_encrypted_one
Encoding:nsasciistringencoding];
NSData *data_encrypted_two = [NSData datawithbytes: (unsigned char []) {0x77,0x69,0x74,0x68,0x4f,0x70,0x74,0x69,0x6f, 0X6E,0X73} Length:11];
NSString *key_encrypted_two = [[NSString alloc] Initwithdata:data_encrypted_two
Encoding:nsasciistringencoding];
NSString *method = [NSString stringwithformat:@ "%@%@%@%@", key_encrypted_one,@ ":", key_encrypted_two,@ ":"];
return method;
}
IOS 10 Jump system settings