How to hide navigation bar in iPhone?

后端 未结 7 554
悲&欢浪女
悲&欢浪女 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:25

    Try setting the navigationBarHidden: in viewWillDisAppear of class B

    in class B

    -(void)viewWillDisAppear:(BOOL)animated
    {
        [self.navigationController setNavigationBarHidden:YES];
    }
    

提交回复
热议问题