title: iOS 11: Scroll to top when "adjustedContentInset" changes with larger title bars?
body: <p>I noticed that this code doesn't quite work as expected on iOS 11, because the "<strong>adjustedContentInset</strong>" property value changes as the "<strong>navigationBar</strong>" shrinks during a scroll:</p>
  
  <pre><code>CGFloat contentInsetTop=[scrollView contentInset].top;
  
  if (@available(iOS 11.0, *))
  {
      contentInsetTop=[scrollView adjustedContentInset].top;
  
  }
  ////
  
  [scrollView setContentOffset:CGPointMake(0, -contentInsetTop) animated:YES];
  </code></pre>
  
  <p>... For example, this might start out as <code>140</code>, then reduce to <code>88</code> beyond a minimal scroll offset. This means if you call this, it doesn't actually scroll all the way to the top.</p>
  
  <p>Aside from preserving the original offset in memory from when the <code>UIScrollView</code> loads, is there a way to recover this value later to ensure that it does indeed scroll to top consistently, no matter the "<strong>adjustedContentInset</strong>"?</p>