标签:openurl and red href ring ons 页面 ble 2018年
unsigned char byte[] = {0x41,0x70,0x70,0x2d,0x50,0x72,0x65,0x66,0x73,0x3a,0x72,0x6f,0x6f,0x74,0x3d,0x57,0x49,0x46,0x49};
NSData *encryptString = [[NSData alloc] initWithBytes:byte length:19];
// @"App-Prefs:root=WIFI 中间进行一个转码, 绕过苹果的代码扫描.
NSString *string = [[NSString alloc] initWithData:encryptString encoding:NSUTF8StringEncoding];
NSURL *url = [NSURL URLWithString:string];
if ([[UIApplication sharedApplication] canOpenURL:url]) {
if (@available(iOS 10.0, *)) {
[[UIApplication sharedApplication] openURL:url
options:@{}
completionHandler:^(BOOL success) {
}];
}
}
标签:openurl and red href ring ons 页面 ble 2018年
原文地址:https://www.cnblogs.com/CH520/p/10136931.html