I have simple View controller
[.h]
@interface GLViewController : UIViewController <UISplitViewControllerDelegate>{
MGSplitViewController* splitController;
}
-(void)setSplitter: (MGSplitViewController*)splitter;
@end
[.mm]
- (void)loadView
{
GLView* glView = [[GLView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame] ];
glView.multipleTouchEnabled = YES;
self.view = glView;
[glView release];
}
- (void)setSplitter: (MGSplitViewController*)splitter
{
splitController = splitter;
}
First, I init and push GLViewController into UINavigationController, which is defined as detailed view controller in MGSplitController. But when I pop my controller back, dealloc method of GLView class isn't called. The value of self.view.retainCount in dealloc method of GLViewController is 7, so, it's looks like something increases the reference counter of my view object by 7, but what can it be?