title: How to remove navigation bar in ios?
body: <p><img src="https://i.stack.imgur.com/GgicP.png" alt="enter image description here"></p>
  
  <pre><code>- (void)viewWillAppear:(BOOL)animated
  {
      [self.navigationController setNavigationBarHidden:YES animated:animated];
      [super viewWillAppear:animated];
  
  
  }
  
  - (void)viewWillDisappear:(BOOL)animated
  {
      [self.navigationController setNavigationBarHidden:NO animated:animated];
      [super viewWillDisappear:animated];
  }
  </code></pre>
  
  <p>It's a screen shot when up corner it's slightly display.</p>
  
  <p>I used this code for hide the navigation bar in view.but when view will start then it's give me effect like navigation bar are present.</p>
  
  <p>But, I want to remove this effect or remove the navigation bar only this view.</p>