iOS 10 跳转系统设置
来源:互联网 发布:在万网买完域名之后 编辑:程序博客网 时间:2024/04/27 14:13
苦心人天不负, 为了项目终于把 iOS 10 跳转系统设置的方法给搞定了, 很欣慰.
http://www.cnblogs.com/lurenq/p/6189580.html
iOS 10 跳转系统设置的字段
电池电量 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];
}
// 利用ASCII值进行拼装组合方法。这样可绕过审核, 这么写也有弊端,如果苹果的未公开方法一旦修改。我们必须重新进行修改
-(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 跳转系统设置
- iOS跳转系统设置
- iOS 跳转系统设置
- iOS 跳转系统设置
- ios 系统设置跳转
- IOS 跳转系统设置页面
- iOS 跳转系统设置页面
- iOS 跳转到系统设置
- iOS跳转系统设置页面
- ios 跳转 定位设置 系统设置 openURL
- iOS 10 应用内跳转到系统设置
- [IOS] App内跳转到系统设置
- iOS 跳转到系统设置界面
- iOS App跳转到系统设置页面
- iOS App跳转到系统设置页面
- iOS 应用内跳转到系统设置
- iOS跳转到系统设置页
- iOS开发 跳转到系统设置
- 官方侧滑菜单DrawerLayout的简单实现
- PAT A1095. Cars on Campus (30)
- 弄懂SPI接口
- MFC ListCtrl的用法
- 计算组合数
- iOS 10 跳转系统设置
- 信号量(java并发编程实战5.5.4)
- 关于STL模板的使用效率与控制输出时最后不加空格问题
- 设置radio选中
- Android--实现点击一次返回键返回桌面而不是退出应用
- 图解Nosql(hbase)与传统数据库的区别
- python 部分文件、目录操作
- ACM题型分类
- 奇异矩阵