title: Adding data to a UITableView while the UITableView is visible?
body: <p>I've read every post here on SO regarding UITableView and reloadData, and nothing I've found has worked for me.</p>
  
  <p>In the UI builder I have a UIViewController xib file with a UIView in it, and on that UIView, a UITableView. My UIViewController subclass is references as the File Owner for the xib. My subclass is a UITableViewDataSource and UITableViewDelegate, and I've wired up the dataSource and delegate referencing outlets to point to the UITableView in the UI builder. I've linked the UITableView in builder to the IBOutlet defined in my subclass. </p>
  
  <p>Initially when the UITableView is displayed, the underlying NSMutableArray that I'm using as the data source has no data it, so the UITableView is empty as expected.</p>
  
  <p>Later on, I modify the array, adding data to it. </p>
  
  <p>I then have tried the following to refresh the view of the UITableView, all to no avail:</p>
  
  <ul>
  <li><p>Called [myTableView reloadData] after changing my array</p></li>
  <li><p>Called [myTableView performSelectorOnMainThread:@selector(reloadData) withObject:nil waitUntilDone:NO];</p></li>
  <li><p>Called insertRowsAtIndexPaths on the myTableView, thinking I might need to actually tell it which row to update.</p></li>
  </ul>
  
  <p>None of these work. However, the data is there and everything seems to be wired up OK, as whenever I drag the UITableView up and release, so that the first row has temporarily disappeared, suddenly it does display the expected content when it comes back into view.</p>
  
  <p>Any ideas?</p>