Friday, August 21, 2015

Hide Tab Bar

You might have a table view in a tab bar controller, and in certain view you would like to hide the tab bar.

However, the scroll view's(table view)'s height/constraints have been defined when you enter the view controller, hence self.tabBarController?.tabBar.hidden = true will mess up your scrollable height

Add the following line to prepareforsegue when you enter that controller

segue.destinationViewController.hidesBottomBarWhenPushed = true

No comments:

Post a Comment