How to ensure destruction of singleton in IOS 5 with ARC?
Say, I want to create a singleton which has some data inside. The data is dynamically allocated only once, as it expected on singleton. But I would like to now under when and how this data can be is released. Should I establish special method which will destroy the singleton? To be more specific - when the method 'dealloc' for this singleton will be executed? who is responsible for that? You can declare a method/function you call explicitly. The simplest way is to have a static C++ class hold it, then release it in its destructor. If you have multiple singletons, then this approach does not