title: PDF inside a navigational app using UITableView and UIWebView
body: <p>My goal is to make a navigational Table View iOS app, with each cell representing a different PDF. All PDFs will be local.</p>
  
  <p>I based my Table code off of a tutorial.</p>
  
  <p>RootViewController.m</p>
  
  <pre><code>- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
  
       NSString *selectedRoute = [listOfItems objectAtIndex:indexPath.row];
  
       DetailViewController *dvController = [[DetailViewController alloc] initWithNibName:@"DetailView" bundle:[NSBundle mainBundle]];
      dvController.selectedRoute = selectedRoute;
       [self.navigationController pushViewController:dvController animated:YES];
       [dvController release];
      dvController = nil;
  }
  </code></pre>
  
  <p>I based my UIWebView code off of <a href="http://www.youtube.com/watch?v=18SNmZ4lWak" rel="nofollow noreferrer">this video tutorial</a>.</p>
  
  <p>DetailViewController.m</p>
  
  <pre><code>- (void)viewDidLoad {
      NSString *endereco = [[NSBundle mainBundle] pathForResource:@"Clinton" ofType:@"pdf"];
      NSURL *url = [NSURL fileURLWithPath:endereco];
      NSURLRequest *urlEndereco = [NSURLRequest requestWithURL:url];
      [webView loadRequest:urlEndereco];
      [self.view addSubview:webView];
      webView.scalesPageToFit = YES;
      [super viewDidLoad];
  
      self.navigationItem.title = @"Selected Route";
  }
  </code></pre>
  
  <p>I replaced the textbox from the Table tutorial with the UIWebView, but I'm just getting a blank view when I run it. What else do I have to add to allow my pdf to appear? </p>