The problem with developing a project is this:
A label controller wraps two navigation controllers and two navigation controllers are packaged with a view controller (mostly UITableView)
When you click on the cell to push to another interface, you need to hide the tab bar (because the tab bar is covered by the following input box), back to show the tab bar (this is no problem)
When you click another tab on the tab bar and then point it back, the tab bar will be hidden (I wrote the error code, not described)
Correct thinking: (-_-| | It should be right to use this to make it.
The first thing you need to know about this property is: (Hide when push is not, default is NO)
Hidesbottombarwhenpushed
Second, understand the life cycle of Uiviewcontrllor:
-(void) Viewwillappear: (BOOL) animated { [Super viewwillappear:animated];} -(void) Viewwilldisappear: (BOOL) animated { [Super viewwilldisappear:animated];} -(void) Viewdiddisappear: (BOOL) animated{ [Super viewdiddisappear:animated];// self.hidesbottombarwhenpushed = NO; } -(void) Viewdidappear: (BOOL) animated{ [Super viewdidappear:animated];// self.hidesbottombarwhenpushed = YES; }
See here, you may know my previous mistakes, I will show and hide write in view will (show, disappear inside)
Already shown: (Push hidden)-(push)-Hide
Has disappeared: (push not hidden)-Avoid the tab bar being hidden when clicked back on the tab bar
Well, it's been tested, and there's no difference between what's gone and what's going to disappear (-_-| | )
self.hidesbottombarwhenpushed = YES;
Can't write in will show inside Oh, tab bar switch over there will be a problem,
Questions about the tab bar hiding and displaying