How to handle Tap events in Xamarin.iOS?

79 views
Skip to first unread message

Shirley Gong

unread,
Jun 2, 2014, 6:35:08 PM6/2/14
to pdfne...@googlegroups.com
Q: what we would like to do is catch the tap events on the pdfviewctrl object. i don’t see that in the PDFNetiOS the events like:
 handleTap or handleLongPress are being exposed in the binding. so if i overwrite the tool class like in the rest of the tools. i cannot overwrite this methods since they are not exposed. 
can someone help me on this one. 

A: If you just want to handle tap events, you can simply do:

mPdfViewCtrl.PdfScrollViewTap += (object sender, EventArgs e) => {
    // do something
};
You can find a list of available events in our documentation: http://www.pdftron.com/pdfnet/mobile/docs/iOS/src/protocol_p_d_f_view_ctrl_delegate-p.html.

You will not need to customize the Tools in Obj-C.
Reply all
Reply to author
Forward
0 new messages