I have an app with two tabs, each one containing a table view. The whole is wrapped in a UINavigationController. Here is my storyboard:
When I run my app, the first tab is OK:
But on the second one, the table view starts under the navigation bar:
Even worse, when I rotate the screen from the second tab, the second tab is now OK, but the first isn't any more, the table view has an extra margin top:
If I rotate back to portrait from the first tab, I return to the initial state (first tab OK, second tab with table view starting under the navigation bar). In fact, each time I rotate the screen, the displayed tab is OK after the rotation, but the other one isn't.
It seems that I need to do something when my views are shown after a tab change, and that thing seems to be done when the screen rotates, but what is it??
EDIT: I forgot to mention that I don't want to uncheck the "Extend Edges: Under Top/Bottom Bars" checkboxes, because I want my table views to scroll under the nav and tab bars.