UISearchController(PSPDFAdditions)
Objective-C
@interface UISearchController (PSPDFAdditions)
Extends UISearchController
with some helpers.
-
If the
searchResultsController
is aUITableViewController
subclass, this returns its table view.Declaration
Objective-C
@property (nonatomic, readonly, nullable) UITableView *pspdf_searchResultsTableView;
Swift
var pspdf_searchResultsTableView: UITableView? { get }
-
Enables a workaround for rdar://352525 and rdar://32630657.
rdar://352525: UISearchController: Status Bar on top of Search Bar after rotating http://www.openradar.me/352525
rdar://32630657: UISearchController logs about loading view during deallocation due to uninstalling back gesture recognizer http://www.openradar.me/32630657
Declaration
Objective-C
- (void)pspdf_installWorkaroundsOn:(nonnull UIViewController *)controller;
Swift
func pspdf_installWorkarounds(on controller: UIViewController)