title: How can I hide the navigation bar when pushing a view controller?
body: <p>I'm making customized UIScrollView such like pinterest's two column view.</p>
  
  <p>The scrollview should have search function. So I tried to use UISearchDisplayController but I can't because UISearchDisplayController implements only UITableView.</p>
  
  <p>So, I created  search display controller such like UISearchDisplayController. It's good. well done.</p>
  
  <p>But I have a big problem. I can't implement completely behavior of UISearchDisplayController when go to detail view.</p>
  
  <p>See below images.</p>
  
  <p>this image is UISearchDisplayController's behavior on Simulator's Contact App.</p>
  
  <p><img src="https://i.stack.imgur.com/wseEI.png" alt="enter image description here"></p>
  
  <p>Detail view have a navigationBar when pushed. but first view's navigationBar is hidden.</p>
  
  <p><img src="https://i.stack.imgur.com/FySti.png" alt="enter image description here"></p>
  
  <p>The UISearchDisplayController's behavior is good to transition view. Search view don't have UINavigationBar and detail view has UINavigationBar separately. but my controller can't do that.</p>
  
  <p>I call <code>setNavigationBarHidden:animated</code> method try to hide navigation bar when touch UISearchBar on search view.</p>
  
  <p>How to implement second image. any ideas?</p>
  
  <p>sorry for my bad english :)</p>