I lose my bluetooth connection every time I try to change the ViewController
I put the CBPeripheralManagerDelegate
Methods in each ViewController
.
How should I reorganize my code ?
I lose my bluetooth connection every time I try to change the ViewController
I put the CBPeripheralManagerDelegate
Methods in each ViewController
.
How should I reorganize my code ?
you must CBCentralManager
trough ViewController
s on PrepareForSegue
method so it will retain the instance
create new class for implement CBPeripheralManagerDelegate
and create its instance and pass it
you can use prepare for segue method accordingly this sample