in my mac application pdfkit using for pdf reader.while scroll the mouse scroll the pages changing how can avoid that.pdfview's display mode is kPDFDisplaySinglePage.No need to work scroll Please help me
Hacky, brittle and a year or two too late, but... the first subview of your PDFView is a private NS/UIScrollView-derived PDFScrollView. Simply cast this and change its isScrollEnabled
property to false
, e.g. for iOS:
(yourPdfView.subviews[0] as! UIScrollView).isScrollEnabled = false
Alternatively, and probably a better answer: turn off user interaction for the view, or otherwise intercept and handle it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With