I need to show a list of pdf’s in a tableView/collectionView so the user can either select it(or multiple pdf’s) to attach to an email or display it in another view. Any opinions of the best/easiet way to accomplish this. Are there any RW tutorials that do something similar?
I can load the pdf’s locally, but eventually would like the pull them from an external source.
You can use a UIWebView to get the PDF from your bundle directly, no need to call an online web service.
NSString *html = [NSString stringWithContentsOfFile:path1 encoding:NSUTF8StringEncoding error:nil];
[self.webView loadHTMLString:html baseURL:[NSURL fileURLWithPath:[[NSBundle mainBundle]bundlePath]]];
Thanks @rajnarayan. I’ll give it try today and see how it work.