core-bluetooth Setup bluetoooth central manager Declare and instantiate CBCentralManager


Example

Swift:

var centralManager:CBCentralManager!

centralManager = CBCentralManager(delegate: self, queue: nil)

Objective C:

@property (nonatomic, strong) CBCentralManager *centralManager;

centralManager = [[CBCentralManager alloc] initWithDelegate:self queue:nil];