HowToMakeAMagazineApp icon indicating copy to clipboard operation
HowToMakeAMagazineApp copied to clipboard

right to left swipe

Open bahmet opened this issue 13 years ago • 4 comments

hi, i tried your sample project with some of my pdf files. store.plist worked fine and it even downloaded new issues. however my pdf pages scroll vertically. how can i make it swipe horizontally. is my pdf's wrong or should i change somthing in the code... thanks

bahmet avatar Jul 04 '12 12:07 bahmet

Hi,

the scrolling behaviour is independent on the pdf. In the example app I have implemented the pdf viewer in the quickest way, that is using the out of the shelf Apple's QuickView framework which supports pdf viewing only with vertical scrolling, as you can see in Safari. To have horizontal scrolling you need to implement your own pdf viewer (not an easy task) or search in the web for some free or commercial solution.

Carlo

Sent from my iPhone

On 04/lug/2012, at 14:40, bahmet [email protected] wrote:

hi, i tried your sample project with some of my pdf files. store.plist worked fine and it even downloaded new issues. however my pdf pages scroll vertically. how can i make it swipe horizontally. is my pdf's wrong or should i change somthing in the code... thanks


Reply to this email directly or view it on GitHub: https://github.com/viggiosoft/HowToMakeAMagazineApp/issues/4

viggiosoft avatar Jul 04 '12 12:07 viggiosoft

hi carlo, while i digg into this page swipe issue, i found that uipageviewcontroller can handle PDF as iBook way. i looked at the code and sample project, however since i am no coder i could not find a way to put that solution to your working demo. can you pls give me some hint to do that. i have unlimited patience, so if you tell me that, put this code to somewhere that line, i can try and let you know... thanks

http://developer.apple.com/library/ios/#DOCUMENTATION/UIKit/Reference/UIPageViewControllerClassReferenceClassRef/UIPageViewControllerClassReference.html https://www.chillysky.com/UIPageViewControllerDemo.zip

bahmet avatar Jul 05 '12 12:07 bahmet

Hi,

you can get some inspiration from this project on github: https://github.com/vfr/Reader, which implements a good PDF reader. I don't think it supports the page curl effect that you can get with UIPageViewController, and this requires some extra effort from your side to link the two parts together as UIPageViewController requires a view controller to represent a single page, while VFR provides its own proprietary page view controller.

I think this is a good point to start.

Carlo

On Jul 5, 2012, at 14:28 , bahmet wrote:

hi carlo, while i digg into this page swipe issue, i found that uipageviewcontroller can handle PDF as iBook way. i looked at the code and sample project, however since i am no coder i could not find a way to put that solution to your working demo. can you pls give me some hint to do that. i have unlimited patience, so if you tell me that, put this code to somewhere that line, i can try and let you know... thanks

http://developer.apple.com/library/ios/#DOCUMENTATION/UIKit/Reference/UIPageViewControllerClassReferenceClassRef/UIPageViewControllerClassReference.html https://www.chillysky.com/UIPageViewControllerDemo.zip


Reply to this email directly or view it on GitHub: https://github.com/viggiosoft/HowToMakeAMagazineApp/issues/4#issuecomment-6777472

viggiosoft avatar Jul 09 '12 05:07 viggiosoft

hi carlo, thanks for the link, i downloaded and viewed the vfr project. it looks good, with bookmark, thumbnail, etc functions. i will try to put this viewer into your newsstand project. pls let me know if you have already done so:)) thanks bahmet

bahmet avatar Jul 09 '12 08:07 bahmet