Hello,
In my project I need a Singleton class for shared data. When I change scene i would like to dealloc this Singleton class because I don't need it again. The retain count of this class is 1 and when i try to execute code (when i change view)
[[MyClass sharedClass]release];
the application crash!
Why? Is there an another way to dealloc a singleton class or a singleton class nevere dealloc?
Thank you very much!
In my project I need a Singleton class for shared data. When I change scene i would like to dealloc this Singleton class because I don't need it again. The retain count of this class is 1 and when i try to execute code (when i change view)
[[MyClass sharedClass]release];
the application crash!
Why? Is there an another way to dealloc a singleton class or a singleton class nevere dealloc?
Thank you very much!