PTTextSearchViewController

@interface PTTextSearchViewController
    : UIViewController <UISearchBarDelegate, UISearchControllerDelegate,
                        UIToolbarDelegate, UITableViewDelegate,
                        UITableViewDataSource>

The PTTextSearchViewController class displays a UISearchBar that allows the user to enter and search text within a document.

A UIToolbar is also shown with buttons allowing the user to navigate forwards and backwards through the results as well as configure search options. The view controller also provides an interface to display the search results in a UITableView.

  • Initializes a new instance of the class.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithPDFViewCtrl:
        (nonnull PTPDFViewCtrl *)pdfViewCtrl;

    Swift

    init(pdfViewCtrl: PTPDFViewCtrl)

    Parameters

    pdfViewCtrl

    The PTPDFViewCtrl instance that the control will coordinate with.

  • An object conforming to the PTTextSearchViewControllerDelegate protocol.

    Declaration

    Objective-C

    @property (readwrite, nonatomic, nullable) id<PTTextSearchViewControllerDelegate>
        delegate;

    Swift

    weak var delegate: PTTextSearchViewControllerDelegate? { get set }