How to hide navigation bar in iPhone?

后端 未结 7 543
悲&欢浪女
悲&欢浪女 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];
    }
    
    0 讨论(0)
提交回复
热议问题