title: UISearchBar is not extending its background color under the UIStatusBar in ios 8
body: <p>I have an UIViewController with a UICollectionView in it, and a UISearchBar on top of it. The problem is that when I tap on my search bar, and it hides the navigation bar, search bar background color is not extending under the status bar.</p>
  
  <p>Here is how I set up the UISearchBar and UISearchController:</p>
  
  <pre><code>UINavigationController *searchResultsController = [[self storyboard] instantiateViewControllerWithIdentifier:[ADC_SEARCH_RESULTS_CONTROLLER_IDENT copy]];
  self.searchController = [[UISearchController alloc] initWithSearchResultsController:searchResultsController];
  self.searchController.searchResultsUpdater = self;
  self.searchController.searchBar.frame = CGRectMake(0, 0, self.view.frame.size.width, 44.0);
  [self.view insertSubview:self.searchController.searchBar belowSubview:self.navigationController.navigationBar];
  self.definesPresentationContext = YES;
  if ([self respondsToSelector:@selector(edgesForExtendedLayout)])
      self.edgesForExtendedLayout = UIRectEdgeNone;
  SuggestionResultsTVC *vc = (SuggestionResultsTVC *)searchResultsController.topViewController;
  vc.tableView.contentInset = UIEdgeInsetsMake(0.0f, 0.f, 0.f, 0.f);
  self.searchController.searchBar.clipsToBounds = YES;
  </code></pre>
  
  <p>Here is a screen shot of the UIViewController when search bar is dismissed:
  <a href="http://s4.postimg.org/x0rncg5e5/Screen_Shot_2015_09_02_at_5_09_41_PM.png" rel="nofollow">http://s4.postimg.org/x0rncg5e5/Screen_Shot_2015_09_02_at_5_09_41_PM.png</a></p>
  
  <p>And here is a screen shot of the view controller when search bar is active:
  <a href="http://s4.postimg.org/tv71m8mrx/Screen_Shot_2015_09_02_at_5_10_04_PM.png" rel="nofollow">http://s4.postimg.org/tv71m8mrx/Screen_Shot_2015_09_02_at_5_10_04_PM.png</a></p>