I am having status bar issues. I have a UIViewController
, this has a container view which embeds a UITabBarController
inside that UIViewController
.
When enabling the status bar in my app using View controller-based status bar appearance
= YES
in my Info.plist
, it acts as normal, the root UIViewController
displays the status bar as you expect.
However, it is causing the UITabBarController
in the container view to push my view contents down by 20 pixels, leaving a gap at the top of my tabbar view for where it thinks the status bar should be.
But of course the status bar isn't shown there because its shown at the top of the screen where it normally is. So it is effectively just adding a gap in my container view.