iPhone - view PDF like in iBooks

后端 未结 3 764
余生分开走
余生分开走 2021-02-04 19:05

I have question about view for displaying multipage PDFs in my app. I have found solutions with webview but they lack ability to zoom and scroll between pages horizontally. Also

相关标签:
3条回答
  • 2021-02-04 19:28

    Update: 04 Feb 2012

    Check out this project, it's opensource and very well made:

    Project:
    http://www.vfr.org/

    Source:
    https://github.com/vfr/Reader

    0 讨论(0)
  • 2021-02-04 19:35

    Checkout this sample code from Apple:

    http://developer.apple.com/library/ios/samplecode/ZoomingPDFViewer/Introduction/Intro.html

    It tells you how to efficiently display and zoom PDF documents.

    For paging, see this link:

    http://www.random-ideas.net/posts/42

    Between the two of those you should be all set.

    0 讨论(0)
  • 2021-02-04 19:36

    I can't give you the answer, but i can redirect you to a example project that is able to load and render a multipage pdf page by page.
    To be honest this application it's manly on the iBook curl effect (forget it, it's a private API, no way) but inside there is a class that render on a view a pdf page, I'm sure that if you play a little with that code, CGAffineTransformMakeScale, CGAffineTransformMakeTranslation and touch control you will be able to obtain that effect.

    Link to the project:
    http://blog.steventroughtonsmith.com/2010/02/apples-ibooks-dynamic-page-curl.html

    0 讨论(0)
提交回复
热议问题