NSURL *url = [NSURL URLWithString:@"app-Prefs:root=Bluetooth"];
if ([[UIApplication sharedApplication] canOpenURL:url]) {
[[UIApplication sharedApplication] openURL:url options:@{} completionHandler:nil];
}
注意字符串url一定不要传错!!!
NSURL *url = [NSURL URLWithString:@"app-Prefs:root=Bluetooth"];
if ([[UIApplication sharedApplication] canOpenURL:url]) {
[[UIApplication sharedApplication] openURL:url options:@{} completionHandler:nil];
}
注意字符串url一定不要传错!!!
本文标题:iOS 10 openURL:打开蓝牙设置
本文链接:https://www.haomeiwen.com/subject/cgobattx.html
网友评论