[英]How can I open bluetooth setting on button press in ios9?
我想單擊一個按鈕打開藍牙設置頁面。 目前,它正在打開“常規”頁面。
為此,我正在做以下事情:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=Bluetooth"]];
現在,您只能打開當前的應用程序設置,對不起..... https://developer.apple.com/library/ios/releasenotes/General/WhatsNewIniOS/Articles/iOS8.html
您可以通過以下方式打開/關閉藍牙
BluetoothManager *manager = [BluetoothManager sharedInstance];
[manager setEnabled:![manager enabled]];
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.