Intro
A customize navigation controller to hide navigation bar when push and pop viewcontroller. When using UINavigationController to push or pop a controller which navBar is hidden, the effect of switching the bar is so poor. To improve this effect, I add a fake navBar to the controller which navBar is not hidden.
Chinese introduction
The iOS navigationBar has a very ugly effect when switching between transparent and non-transparent. The reason is that when switching viewControllers, the two viewControllers use the same navigationBar and can only be transparent or non-transparent at the same time. It is actually very simple to solve this problem, which is to determine whether the top needs to be transparent when switching. For non-transparent viewController, just add a fake navigationBar at the top.