- the system navigation bar is hidden on the front page according to the demand, and the navigation bar is displayed on the next page, so the problem should be very simple: the first thing that comes to mind is the inversion of ViewwillAppear: and ViewwillDisAppear:, that is, the current controller View is hidden when it is about to load, displays the navigation bar when it is about to disappear, and returns with a blank navigation bar or inconsistent steps. So hiding the navigation bar needs to be animated. This solves the switching between sub-pages and sub-pages.
- however, there is also a personal center page, which also needs to hide the navigation bar and do the same according to the home page. Here comes the problem! TabBar from the home page to the personal center can not see the problem (because the designer set the background of the page to white), again from the personal center to switch back to the home page, the problem highlights: the home navigation bar from the top of the banner position to move up an animation to the screen, just like watching TV that kind of snowflake wave feeling, looks very unnatural, user experience needless to say. This problem is a bit of a rout, and you can"t have both.
method 1: hide the navigation bar without animation, there will be problems with the switching between the sub-page and the home page, and the navigation bar becomes blank when returning to the home page from the sub-page.
method 2: hide the navigation bar with an animation, there will be problems with the switch between the personal center and the home page, and the navigation bar hides the animation with flicker