问题
i m getting data from remote server and recieving the couple of pdf file from webservice
i was opening pdf file in my UIWebView, but i want the page curl effect on my pdf file
like normally we have the effect in pageBasedApplication.
i search many tutorials and google it but can't find the simplest solution that how
can i show my pdf file in page curl effect and i can zoom in and out the pdf
Please guide me how can i show my pdf file in page curl effect .
if anyone have the code so please provide me or tell me some simple tutorial that i can
follow, looking forward for you answers.
thanks in advance
回答1:
You should be able to do that through UIPageViewController-PDF (follow full instructions from the github page, though):
NSString *path = [[NSBundle mainBundle] pathForResource:@"myFile" ofType:@"pdf"];
PageViewController *page = [[PageViewController alloc] initWithPDFAtPath:path];
[self presentViewController:page animated:YES completion:NULL];
On the other hand, Leaves should also work out of the box; if you get the sample app and replace the PDF file name that should be all.
If you cannot work it out, please, paste your code and explain in detail what does not work for you.
来源:https://stackoverflow.com/questions/19611517/how-can-i-add-page-curl-effect-in-pdf-file