PTFindTextToolbar
@interface PTFindTextToolbar : UIToolbar <UISearchBarDelegate>
The PTFindTextToolbar class displays a UISearchBar
that allows the user to enter
and search text within a document.
Floating buttons that allow navigating to the next or previous search result
are positioned over the pdfViewCtrl
while the user is searching.
-
Returns a new instance of a PTFindTextToolbar.
Declaration
Objective-C
- (nonnull instancetype)initWithPDFViewCtrl: (nonnull PTPDFViewCtrl *)pdfViewCtrl;
-
The
PTPDFViewCtrl
used for finding text.Declaration
Objective-C
@property (nonatomic, strong) PTPDFViewCtrl *_Nonnull pdfViewCtrl;
-
An object conforming to the PTFindTextToolbarDelegate protocol.
Declaration
Objective-C
@property (nonatomic, weak, nullable) id<PTFindTextToolbarDelegate> delegate;
-
Remove the floating next and previous buttons shown while searching.
Declaration
Objective-C
- (void)removeButtons:(BOOL)animated;
Parameters
animated
whether to animate the removal
-
Requests that the internal
UISearchBar
become the first responder.Declaration
Objective-C
- (void)searchBarBecomeFirstResponder;
-
Undocumented
Declaration
Objective-C
- (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE;
-
Undocumented
Declaration
Objective-C
- (instancetype)initWithCoder:(NSCoder *)aDecoder NS_UNAVAILABLE;