How to hide navigation bar in iPhone?

后端 未结 7 550
悲&欢浪女
悲&欢浪女 2021-01-16 04:55

Currently i am working in iPhone app, I have two screen like A and B, A has no navigation bar, but B has navigation bar. so i set like this.

Class A:



        
7条回答
  •  悲哀的现实
    2021-01-16 05:05

    I don't think a behavior when you are hiding and showing the navigation bar dynamically as you are pushing controllers is supported.

    Simple solution - hide the animation bar of the UINavigationController and if you want to show it on some controller, just add a UINavigationBar to it.

提交回复
热议问题