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

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

More
IP: 192.168.0.70 12 years 3 months ago #4600 by sahli.wa.skumar
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.
More
IP: 192.168.0.121 12 years 3 months ago #4606 by emanuele
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");
}
Time to create page: 0.377 seconds
Powered by Kunena Forum