Description: class implementing protocol of PDF document search delegate.
#import <Foundation/Foundation.h> #import "MAPdfSearchResultsViewController.h" #import "MAProceduralReportDataViewController.h" // Class implementing protocol of PDF document search delegate @interface SearchDelegate : NSObject<PdfSearchDelegate> // Executes operations required on finding specified text on page - (void) foundOnPageIndex:(int)index; // Executes operations required after finishing search in PDF document - (void) searchFinished; @end
#import "SearchDelegate.h" @implementation SearchDelegate // Executes operations required on finding specified text on page - (void) foundOnPageIndex:(int)index
{ NSLog(@"Specified text is found on page %d", index); } // Executes operations required after finishing search in PDF document - (void) searchFinished
{ NSLog(@"Text search is finished"); } @end
See also:
Searching of Text in Regular Report | Working with PDF Document Views