How to get the event for user zoom in and zoom out - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about iOS development and PDF
  • Page:
  • 1

TOPIC: How to get the event for user zoom in and zoom out

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

  • sahli.wa.skumar
  • sahli.wa.skumar's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • 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 4 years 11 months ago #4606

  • emanuele
  • emanuele's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 517
  • Karma: 15
  • Thank you received: 57
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