How can I add a page curl effect to a pdf file?

I get data from a remote server and get a couple of PDF files from webservice

i opened the pdf file in my UIWebView, but I need the page curl effect for my pdf file

as usual, we have an effect in pageBasedApplication.

I am looking for a lot of tutorials and google but cannot find the simplest solution how

Can I show a pdf file in page freeze mode and can I increase and decrease the pdf size

Preach to me how I can show a pdf file in the effect of a page freeze.

if anyone has code please provide me or tell me some simple guides that I can

follow, waiting for an answer.

early

+1
source share
1 answer

You must do this via the UIPageViewController-PDF (however, follow the full instructions on the github page):

 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, the leaves should also work out of the box; if you get an example application and replace the PDF file name, which should be everything.

If you cannot fix this, please insert your code and explain in detail what does not work for you.

+2
source

Source: https://habr.com/ru/post/1437563/


All Articles