I have a tabBar
+ NavigationViewController
. The Tab bar has collection view with cells(Say view1) and with cells a push seag
Bruno Fernandes's answer in Swift:
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
if segue.identifier == "YourSegueIdentifier" {
let destinationController = segue.destinationViewController as! YourViewController
destinationController.hidesBottomBarWhenPushed = true
}
}
This was the answer that worked for me. Putting hidesBottomBarWhenPushed
in the viewDidLoad
method didn't work.
Thanks Bruno!