title: In iOS 7, how to scroll to the top of a UIScrollView when using a translucent UINavigationBar?
body: <p>In iOS 6, you could scroll to the top of a UIScrollView using:</p>
  
  <pre><code>[scrollView setContentOffset:CGPointZero animated:YES];
  </code></pre>
  
  <p>If you use that code in iOS 7 with a translucent navigation bar, you get a result that is <em>technically</em> correct, but not user friendly. The top of the scroll view will be positioned to the origin of the screen. </p>
  
  <p><img src="https://i.stack.imgur.com/9Iapl.png" alt="enter image description here"></p>
  
  <p>How would I position the top of the scroll view to the bottom of the navigation bar instead? I'm looking for a solution that is not hardcoded, because in my application, sometimes the status bar and navigation bar can be hidden. Also, I would like to keep the translucent effect instead of copping out and doing <code>self.edgesForExtendedLayout = UIRectEdgeNone</code>.</p>