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开发者_如何学JAVA 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.
There are several ways to do this. UIPageControl is one way.
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];
精彩评论