title: iOS11 Search bar blank space above and below (iPhone X simulator)
body: <p>When search is active a blank space is above and below search bar in iOS 11. I have search bar view inside the tableview. It seems that search bar is not stretching up. Or what else is wrong?</p>
  
  <p>Hi guys, if someone needs it, these lines do the trick in 
  viewDidLoad method: </p>
  
  <pre><code>        if ([[[UIDevice currentDevice] systemVersion] floatValue] &gt;= 7) 
      { 
      self.automaticallyAdjustsScrollViewInsets=YES;
      self.edgesForExtendedLayout = UIRectEdgeNone;
  self.navigationController.view.backgroundColor = [UIColor whiteColor];
  self.navigationController.navigationBar.translucent = YES; 
      } 
  </code></pre>
  
  <p>Thanks for help.</p>