0
在iOS 6中it's not possible to check if bluetooth is on without a system popup being shown:檢查藍牙是沒有系統彈出在iOS 7
CBCentralManager * testBluetooth = [[CBCentralManager的alloc] initWithDelegate:無隊列:無];
但是,當[[CBCentralManager alloc] init ...]發生時,如果藍牙關閉,系統會向用戶彈出提醒。
這現在可以在iOS 7嗎?
您可以使用'@ NO'來代替'[NSNumber numberWithBool:NO]' – nielsbot