iOS 10 openURL:打开蓝牙设置

NSURL *url = [NSURL URLWithString:@"app-Prefs:root=Bluetooth"];

if ([[UIApplication sharedApplication] canOpenURL:url]) {

          [[UIApplication sharedApplication] openURL:url options:@{} completionHandler:nil];

}

注意字符串url一定不要传错!!!

你可能感兴趣的:(iOS 10 openURL:打开蓝牙设置)