title: iPhone UITableView PlainStyle with custom background image - done "entirely" in code
body: <p>I have been all over the place, seems the <code>UITableView</code> with a static background issue is well documented, but no one with a straight forward solution?
  Im building my <code>TableViews</code> entirely in code, like this:</p>
  
  <pre><code>    UIViewController *tableViewController = [[TableViewController alloc] init];
  navigationController = [[UINavigationController alloc]
                          initWithRootViewController:tableViewController];
  [tableViewController release];
  [window addSubview:navigationController.view];
  </code></pre>
  
  <p>The window is my main <code>UIWindow</code> build for me in the app delegate. From here on I need to build a few different <code>TableViews</code> (controlled by the <code>navigationController</code>), some with <code>fetchedResultsControllers</code>, custom cells and so on. I prefer to do this completely in code, not using nib's as this would result in either having customization spread between code and IB or having to build and maintain 6+ different Nibs.</p>
  
  <p>I simply can't find a working example where a <code>tableViewController</code> Class sets it's own background image. If I do this inside one of my <code>TableViews</code> (extending <code>UITableViewController</code>):</p>
  
  <pre><code>self.tableView.backgroundColor = backgroundColor;
  </code></pre>
  
  <p>I, of course, get the tableView's background colored (which incidentally colors the cell's as well, think the cell's inherits their color from the <code>tableView</code>?) but I wish to have a static background image that my cells slide up and down on top of. Not a "background image" that slides up and down with the users gestures.
  Exactly what the GroupedStyle tableView offers, but in a PlainStyle tableView:) .. and done using code, not IB.</p>
  
  <p>I guess I have to clear the background color of the table view, then set the Cells color when configuring them so they don't turn out transparent. And then somehow "sneak" a background image below the tableView view from inside the tableView instance?</p>
  
  <p>How will I go about this, the best solution would to be able to do this in viewDidLoad or any other function inside my TableViewController, to keep all my customization in one place.</p>
  
  <p>Hope someone can help me, Im all 'googled out' :) Thanks!</p>