Hi,
The navigation controller is not causing the issue. If you have pushed the view controller and popped it then the retain count will not be affected (I'm not actually sure if the Navigation controller retains a viewcontroller which it pushes). You won't loose the pointer if you release the view controller just the memory which it is pointing too will be released. Sounds like you should just make sure that the dealloc method in your view controller has everything it should have in it (i.e. the large images you are talking about) and then after you pop the view controller just release it manually. The dealloc method in the view controller will then be called automatically for you (providing nothing else has retained it). You should then be able to create a fresh view controller in the next cycle of you program with the same pointer as before.
Hope this helps.
M.J.
|