title: UISearchBar shifting position in Navigation Bar
body: <p>Not sure why this is happening, I have a UISearchBar in my navigation bar, however when I start scrolling the SearchResultsTableView, the searchbar seems to jump its position and i get the error warning: <code>[&lt;CALayer: 0x16550840&gt; display]: Ignoring bogus layer size</code></p>
  
  <p>Here are the screenshots of the searchBar shifting in position.</p>
  
  <p><img src="https://i.stack.imgur.com/incDH.png" alt="enter image description here">
  <img src="https://i.stack.imgur.com/yCjpf.png" alt="enter image description here"></p>
  
  <p>It's pretty minimal but very noticeable. Any ideas? Thanks!</p>
  
  <p>Here's the code i use to setup my search bar</p>
  
  <pre><code>if (!self.cardSearchDisplayController) {
      CGFloat searchBarHeight = 64.0;
      self.cardSearchBar = [[UISearchBar alloc]initWithFrame:CGRectMake(0, 0, 320, searchBarHeight)];
      self.cardSearchBar.delegate = self;
      self.cardSearchBar.showsCancelButton = YES;
  
      self.cardSearchDisplayController = [[UISearchDisplayController alloc]initWithSearchBar:self.cardSearchBar contentsController:self];
      self.cardSearchDisplayController.delegate = self;
      self.cardSearchDisplayController.searchResultsDataSource = self;
      self.cardSearchDisplayController.searchResultsDelegate = self;
      self.navigationItem.titleView = self.cardSearchDisplayController.searchBar;
      self.searchDisplayController.displaysSearchBarInNavigationBar = YES;
  }
  </code></pre>