Reputation: 1387
I am doing a simple program. I have 3 pdf file for 1 chapter like "pdf_chapter_1_page_1.pdf","pdf_chapter_1_page_2.pdf","pdf_chapter_1_page_3.pdf". In first chapter we have 3 pdf file. I want to display these 3 pdf file in iPhone. When user will open application he will be on 1st page of chapter and whenever he will drag either horizontal or vertical next pages of same chapter will be loaded.
What is the concept to do it ? Code reference will be appreciate.
Thanks in advance.
Upvotes: 0
Views: 403
Reputation: 3675
You can show pdf page in iphone using UIWebView. It will show you in pagewise.
UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectMake(10, 10, 200, 200)];
NSString *path = [[NSBundle mainBundle] pathForResource:@"document" ofType:@"pdf"];
NSURL *targetURL = [NSURL fileURLWithPath:path];
NSURLRequest *request = [NSURLRequest requestWithURL:targetURL];
[webView loadRequest:request];
[self.view addSubview:webView];
[webView release];
Upvotes: 0