Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about iOS development and PDF

iOS PDF horizontal scroll with uneven heights

More
9 years 1 month ago - 9 years 1 month ago #11877 by [email protected]
Hey guys,

I have an issue when trying to view a PDF with uneven heights.
The desired functionality is to show the pdf with it fitting to the width of the device and be able to scroll to the bottom of that page. then swipe horizontally to go to the next page and the next page should snap to the top.

I have managed to get the page to fit the width by setting PDFView height by
Code:
rect.size.height = CGFloat(self.mDoc!.getPagesMaxSize().cy / self.mDoc!.getPagesMaxSize().cx) * rect.width
However, when I scroll down the page after a small distance I can no longer scroll horizontally.

I have attached the PDF in question. Any ideas what is messing up the horizontal scroll?
ps. I am using view mode = 3
Last edit: 9 years 1 month ago by [email protected].
More
9 years 1 month ago #11891 by emanuele
Hi,

you have to customize the vLayout method of the view mode in use to set the correct page rect (probably you have already done it) but also manage correctly the m_docw value, used to define the scrollview contentSize.
Time to create page: 0.454 seconds
Powered by Kunena Forum