Create a singleton that implements all of all your CBCentralManagerDelegate
methods. Then just create your own delegate methods for that singleton to message your viewControllers. That way you can easily use it in any class. As for storing the CBPeripherals, you can just place them inside of an NSMutableArray
contained inside of your singleton.
Check out this link on how to Create a Singleton Instance
(Oh and for where you say "Initialize it in other view controllers"..That should not ever be the case. But maybe you just mean to store the CFUUIDRef
? If you do that, you can just call retrievePeripherals:(NSArray*)
and get the peripheral object back wherever you want. If thats what you mean...)