title: UIScrollView with contentInset breaks UISearchBar "autofocus"
body: <p>I have a UISearchBar inside of UIScrollView (well, to be precise an AQGridView). Now the searchBar shall be hidden initially (as you see in the Music app for instance). As UIScrollViews don't have a header view, I placed it -40 points outside of the UIScrollView's frame and also set the contentInset to 40 points.</p>
  
  <pre><code>searchBar = [[UISearchBar alloc] initWithFrame:CGRectMake(0.f, -40.f, 320.f, 40.f)];
  gridView.contentInset = UIEdgeInsetsMake(0.f, 40.f, 0.f, 0.f);
  </code></pre>
  
  <p>Now from the look and general behavior that pretty much does exactly what I want. The search bar is hidden, but I can scroll up to reveal it.</p>
  
  <p>Now here's the thing:</p>
  
  <p>When I touch on the searchBar to give it focus and enter some text everything works fine <strong>except</strong> when the searchBar is not entirely visible. In that case the UIScrollView tries to automatically scroll it to complete visibility. However, it scrolls in the wrong direction.</p>
  
  <p>So when, say, 10 points on top of the search bar are hidden, the scroll view scrolls <strong>down</strong> instead of up.</p>
  
  <p>This might be a little bit vague a question, but maybe someone can tell my mistake here... The only thread I could find here was this one: <a href="https://stackoverflow.com/questions/6780730/uitableview-contentinset-issue">uitableview contentInset issue</a> but that also didn't seem to help my case.</p>