how can i add page curl effect in pdf file?

女生的网名这么多〃 提交于 2020-01-03 02:46:06

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!