¡@

Home 

2014/10/15 ¤U¤È 10:14:27

iphone Programming Glossary: statestring

How to get the status of bluetooth (ON/OFF) in iphone programatically

http://stackoverflow.com/questions/4955007/how-to-get-the-status-of-bluetooth-on-off-in-iphone-programatically

self.bluetoothManager Show initial state void centralManagerDidUpdateState CBCentralManager central NSString stateString nil switch bluetoothManager.state case CBCentralManagerStateResetting stateString @ The connection with the system service.. CBCentralManager central NSString stateString nil switch bluetoothManager.state case CBCentralManagerStateResetting stateString @ The connection with the system service was momentarily lost update imminent. break case CBCentralManagerStateUnsupported.. connection with the system service was momentarily lost update imminent. break case CBCentralManagerStateUnsupported stateString @ The platform doesn't support Bluetooth Low Energy. break case CBCentralManagerStateUnauthorized stateString @ The app..