I'm trying to hide the tab bar from within a UITabBarController
.
This successfully hides the tab bar:
self.tabBar.hidden = true
However, I now have a black "blank spot" where the tab bar used to be.
I've seen some solutions to this problem on SO, but they modified the frames directly, and didn't take into autolayout.
How can I stretch the main view to fill the rest of the screen, with autolayout?
Often times its because, the controllers view is not allowed to extend under the bottom bar. You can enable this by