title: How do I reload a tableView contained within a UIViewController?
body: <p>I want to reload the data within a table view that is contained on the root view of my application.</p>
  
  <p>The root view of my application (called RootViewController) is a UIViewController that has a corresponding NIB file. I added a UITableView component to the RootViewController.xib via IB. In the header file RootViewController.h I ensure RootViewController conforms to . I have all this linked up correctly in IB and all the appropriate methods get called, viewWillAppear etc.</p>
  
  <p>My question is, how can I get access to the UITableView so that I can call reloadData on it? </p>
  
  <p>The following code won't work because 'self' is a UIViewController, not a UITableViewController.</p>
  
  <pre><code>[[self tableView] reloadData];
  </code></pre>
  
  <p>If I use the above code I get the following warning and my application crashes on startup:</p>
  
  <pre><code>'RootViewController' may not respond to '-tableView'
  </code></pre>