I have two controller, main and detail, embed with navigationController and TabBarController; now I need to hide TabBar when performing the segue; I tried:
- in main controller adding
controller.hidesBottomBarWhenPushed = true
in preparefor(segue9 method; - in detail controller adding
self.hidesBottomBarWhenPushed = true
inviewDidAppear
orviewWillAppear
; - in main controller adding
self.hidesBottomBarWhenPushed = true
inviewDidAppear
orviewWillAppear
.
But no one solve my problem. How could I hide the TabBar and then make it visible when users touch navigationController back button?