Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about iOS development and PDF
  • Page:
  • 1

TOPIC:

which method for changing page ? 10 years 9 months ago #2987

  • truculent
  • truculent's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 64
  • Thank you received: 0
hi
i know method Vgtoto (int page) for changing page!

but i need a method that changing page when changing page with swipe!

anyway i want Lock paging with a button & going to annot mode & in this mode i want to select text & highlight

plase help me

Please Log in or Create an account to join the conversation.

which method for changing page ? 10 years 9 months ago #2996

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
just set m_swipe_dx and m_swipe_dy in PDFView class.

swipe to special page like:
PDFVPage vpage = [m_view vGetPage:pageno];
int gotox = [vpage GetX];
int curx = [m_view vGetX];
m_swipe_dx = gotox - curx;
these codes only valid for horizontal layouts.
for vertical layout, you may need calculate y coordinate

Please Log in or Create an account to join the conversation.

Last edit: by .
  • Page:
  • 1
Powered by Kunena Forum