I am having a uiviewcontroller instance and when I am releasing it the dealloc method of it is called.
I have released some objects in dealloc method of that uiviewcontroller.
If I comment [super dealloc] the app is working fine but if don’t it is crashing.
I think there is no problem with the releases that I am doing in that method, but if I do [super dealloc] it is crashing.
Can any one help me out with this?
Hard to tell from your post without more information, but does your dealloc method look like this?
Because if it does, you’re calling a setter method on a deallocated instance. You should always call [super dealloc] last:
Not sure if that helps. Try posting what your dealloc method looks like if not. Hard to troubleshoot in the dark.