How to hide navigation bar in iPhone?

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

    Set it in class B

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

提交回复
热议问题