title: UITableView doesn't display based on its height in iOS 7
body: <p>I have an expandable UITableView, which can expand/collapse when users press a button.
  The way is that I change its content when the button is pressed, and assign the contentSize.height to the height of the tableview. It works properly in iOS 6.</p>
  
  <p>However, in iOS 7, no matter what value I set to the height of the tableview, it displays like the height is never changed and the new content is cut off. The height seems to stick to the origin height in the storyboard. But if I print the height of the tableview, it's right the value I set.</p>
  
  <p>Here is how I change its height:</p>
  
  <pre><code>//Do some change to the content...
  [tableview reloadData];
  NSLog(@"height: %f, contentHeight: %f", tableview.frame.size.height, tableview.contentSize.height);// print height: 60, contentHeight: 160
  CGRect frame = tableview.frame;
  frame.size.height = tableview.contentSize.height;
  tableview.frame = frame;
  NSLog(@"height: %f, contentHeight: %f", tableview.frame.size.height, tableview.contentSize.height);// print height: 160, contentHeight: 160
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>p.s. The tableview is in a UIScrollView. (if it matters.)</p>