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

TOPIC:

How to get the event for user zoom in and zoom out 10 years 5 months ago #4600

  • sahli.wa.skumar
  • sahli.wa.skumar's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 18
  • Thank you received: 0
Hi,

i need to get an event for zoom in and zoom out of PDFView.
Is there event from which i can come to know that the user has zoomed in the PDFView or Zoomed out the PDFVIew.
Please suggest.

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

How to get the event for user zoom in and zoom out 10 years 5 months ago #4606

  • emanuele
  • emanuele's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 580
  • Thank you received: 67
Hi,

You should implement this method.

You can add a method, like "zoomEnd()" in PDFView class, and call It when you find something like this:

if( m_status == sta_zoom )
{
[self zoomEnd];
m_status = sta_none;
}

Now you have to:
  • Save [m_view vGetScale] before [m_view vZoomStart]
  • Check current [m_view vGetScale] in zoomEnd function

- (void)zoomEnd
{
if (m_pre_zoom < [m_view vGetScale]) {
NSLog(@"zoom in");
}
else
NSLog(@"zoom out");
}

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

  • Page:
  • 1
Powered by Kunena Forum