title: Adding subviews to tableHeaderView with UISearchBar in iOS7 misbehaves
body: <p>How can one add two simple UILabels to a TableHeaderView and retain the default searchbar behavior of the search display controller in iOS7?</p>
  
  <p><strong>Or, visually:</strong></p>
  
  <p>Why does this code:</p>
  
  <pre><code>UIView *tableHeadView = self.tableView.tableHeaderView;   
  
  UILabel *tableHeaderLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 36, 320, 30)];
  [tableHeaderLabel setTextAlignment:NSTextAlignmentCenter];
  tableHeaderLabel.font = [UIFont fontWithName:@"HelveticaNeue" size:18];
  tableHeaderLabel.text = @"Questions"
  
  UILabel *tableHeaderPrononce = [[UILabel alloc] initWithFrame:CGRectMake(0, 50, 320, 30)];
  [tableHeaderPrononce setTextAlignment:NSTextAlignmentCenter];
  tableHeaderPrononce.font = [UIFont fontWithName:@"HelveticaNeue-Light" size:15];
  tableHeaderPrononce.text = @"test test test test";
  
  [tableHeadView addSubview:tableHeaderLabel];
  [tableHeadView addSubview:tableHeaderPrononce];
  </code></pre>
  
  <p>added to a UITableViewController viewDidLoad event (which contains a UISearchDisplayerController)
  gives this lovely result in iOS6:<br>
  <img src="https://i.stack.imgur.com/PzQglm.png" alt="Normal"> 
  <img src="https://i.stack.imgur.com/65SoGm.png" alt="While searching"><br><br>
  and this horrible terrible result in iOS7:<br>
  <img src="https://i.stack.imgur.com/dvXEXm.png" alt="Normal">
  <img src="https://i.stack.imgur.com/XPS5Mm.png" alt="While searching"></p>
  
  <p><strong>The behavior:</strong>
  During normal mode the UILabels I added are not shown. while search is active the UILabels suddenly appear ON TOP OF the table cells and does not scroll away</p>
  
  <p>In addition I am getting crashes while searching in iOS 7 which never occurred on iOS6. Probably not related to this piece of code but nevertheless I should mentioned that.</p>
  
  <p>I tried all I could find on SO about fixing this issue but always something else breaks or disappears (mainly the UISearchBar).</p>
  
  <p>Help</p>