I just started working on a relatively complex project, and have discovered a bug. When the user logs out, the view controllers are still allocated behind the login view controller. They continue responding to rotation events, etc. I have set the controller to
- (id) retain
// Break here to see who is retaining me.
return [super retain];
The Instruments Heapshot Analysis tool was the best thing I could find for this purpose. This article provides a more complete tutorial, but the basic steps are:
If someone else writes up a more thorough explanation, or can offer any related lldb commands, I'm happy to mark your answer as correct.