Note that there are some explanatory texts on larger screens.

plurals
  1. POPDF inside a navigational app using UITableView and UIWebView
    primarykey
    data
    text
    <p>I'm fairly new to iOS programming. My school project was to make an iOS app. My goal is to make a navigational Table View app, with each cell representing a different PDF. All PDFs will be local.</p> <p>I based my Table code off of <a href="http://www.iphonesdkarticles.com/2009/01/uitableview-loading-detail-view.html" rel="nofollow">this tutorial</a>.</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">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. Could someone please enlighten me on what else I have to add to allow my pdf to appear? </p> <p>I would appreciate any help provided, my high school graduation depends on me finishing this project.</p> <p>Thank You</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload