I lose my bluetooth connection after changing view on Ios -


i lose bluetooth connection every time try change viewcontroller

i put cbperipheralmanagerdelegate methods in each viewcontroller.

how should reorganize code ?

you must cbcentralmanager trough viewcontrollers on prepareforsegue method retain instance

create new class implement cbperipheralmanagerdelegate , create instance , pass

you can use prepare segue method accordingly sample

how pass prepareforsegue: object


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -