For some time I came across this (somewhat) random error and cannot understand the problem. Context: I am creating an iPad UISplitView application that has a UINavigationController inside the main view:
The main menu is in red, the submenu is green and the main content is in purple.
This UINavigationController does not fill the entire main view, because I need space for the vertical menu. When the user selects a button in the vertical side menu, he sets up something new for the UINavigationController to show the UITableView with parameters. What do I do with every menu selection:
[self.subMenu setViewControllers:@[subMenuViewController] animated:YES];
What happens is that I donβt need to save the menu history, so every time I install a new root view controller in subMenu.
The problem is that I'm starting to mess with the orientation of the device. It does not have a clear picture, but sometimes when I turn, my application crashes. Now, when I run it with tools, this is what I get:
167 Zombie -1 00:32.101.527 UIKit -[UITableView _spacingForExtraSeparators]
And interestingly, bad access happens on the previous subMenu root view controller. Therefore, if I click "Events" and then click "Podcasts", bad access occurs when I try to access the "EventsViewController".
So, I assume that something is wrong on my way to replace the subMenu UINavigationController root view controller, but I'm not sure what it is. Maybe I need to make sure that the current root view controller is released before installing a new one?
Any help is much appreciated. :)