title: setNavigationBar translucent pushes view down
body: <p>I have a view with a transparent <code>UINavigationBar</code> and a <code>UITableView</code> about 10px below it. There's a <code>UIImageView</code> with a cool polygon image in the background that I'm animating in a parallax-y way for view transitions.</p>
  
  <p>Here's the code for the transparent nav bar: </p>
  
  <pre><code>self.navigationController.navigationBar.shadowImage = [UIImage new];
  self.navigationController.navigationBar.translucent = YES;
  [self.navigationController.navigationBar setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault];
  </code></pre>
  
  <p><strong><em>I'm not using storyboards at all for this project</em></strong></p>
  
  <p>I also have a floating action button down in the bottom right.  The nav bar title <code>UILabel</code> I've added to the <code>titleView</code> is swapped for a <code>UITextField</code> for search functionality on tap of a right nav button.  When this happens, I'm setting </p>
  
  <p><code>self.navigationController.navigationBar.translucent = YES;</code></p>
  
  <p>This all works well, except that by setting <code>translucent = NO</code> the view pushes the all of the content down by the height of the nav bar.</p>
  
  <p><a href="https://i.stack.imgur.com/DFLW7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DFLW7.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/VeXGh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VeXGh.png" alt="Search Mode"></a></p>
  
  <p>I can hack together some frame changes to compensate for this, but I was wondering if there was a more <strong>standard practice</strong> solution for this.</p>