title: Auto Layout not working?
body: <p>I have a search bar on top of a table view set up using auto layout like so:</p>
  
  <pre><code>_searchBar.translatesAutoresizingMaskIntoConstraints = NO;
  _tableView.translatesAutoresizingMaskIntoConstraints = NO;
  
  [self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"|[_searchBar]|" options:0 metrics:nil views:NSDictionaryOfVariableBindings(_searchBar)]];
  [self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"|[_tableView]|" options:0 metrics:nil views:NSDictionaryOfVariableBindings(_tableView)]];
  
  [self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:|[_searchBar][_tableView]|" options:0 metrics:nil views:NSDictionaryOfVariableBindings(_searchBar, _tableView)]];
  </code></pre>
  
  <p>Everything looks nice when I run it. But when I do <code>_searchBar.showsScopeBar = YES;</code> before I start editing the search bar, the search bar and table view do not resize automatically. Even when I do <code>[_searchBar sizeToFit]</code>, the table view does not resize and move down. Why??</p>
  
  <p>Note: I'm not putting the search bar as the table view's header; it's just a parent view and two subviews.
  Note 2: I checked the <code>intrinsicContentSize</code> of <code>_searchBar</code> before and after I call <code>_searchBar.showsScopeBar = YES;</code> and the size does indeed change.</p>