I made a sample project of my problem so that you can understand it better. You can get it here:
https://github.com/nwalter08/iOS-7-Container-View-Controller-Probs
My problem is that I have a UITabBarController
that holds a Container UIViewController
that holds a UINavigationController
that holds a UIViewController
. A lot I know :)
The problem is that when I run the app on iOS 7, the UIViewController
doesn't fill the space of the whole UINavigationController
. When I run in iOS 6, this is not a problem.
Some special notes are that I set the translucent
property on the tabBar
and navigationBar
to NO. I am also not using IB or storyboards.
I have color coded the View Controllers so that you can see that the UIViewController
is too short and the yellow UINavigationController
background is showing.
iOS 6
iOS 7
Update -- So rdelmar's answer worked for the UIViews that had no content inside them but I found with my code that the content was stretched and didn't fit. I am pretty sure this is an iOS bug and I submitted a Radar to Apple. To solve my issue, I used a UITabBarController replacement https://github.com/jinthagerman/JBTabBarController