title: What method will be called when Navigation back button is clicked -IOS?
body: <p>This questions look repeated, but I din't got proper solution for my problem. In my case, Once I clicked back button I want to hide the navigation bar. For e.g. View1 pushed view2, view2 will have navigation bar,once I clicked back it brings me back to view 1 it should not contain navigation bar I need to hide it. I tried with viewWillDisappear method in view 2 to hide, it worked but if I have more view and I'm pushing each view from view1 if I click back button,navigation bar should hide in view1. So is anyway is there to know in view 1 itself that other view is popped. I tried viewwillappear method in view1 its not called. What can I do here.?</p>
  
  <p>This method got called once I initially load view1, not after popping view2..      </p>
  
  <pre><code>    - (void) viewWillAppear : (BOOL)animated
  {
      [root_obj.navigationController setNavigationBarHidden:YES animated:YES];
  }
  </code></pre>
  
  <p>This is how I am pushing view 2..</p>
  
  <pre><code>[root_obj.navigationController pushViewController:view2 animated:NO];
  </code></pre>
  
  <p>thanks in Advance</p>