Tencent/QMUI_iOS

将SearchController放到navigationItem.searchController会崩溃

Open

#1229 aperta il 16 apr 2021

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)Objective-C (1444 fork)batch import
help wanted

Metriche repository

Star
 (7200 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

    self.mySearchController = [[QMUISearchController alloc] initWithContentsViewController:self];
    self.mySearchController.searchResultsDelegate = self;
    self.mySearchController.launchView = [[QDRecentSearchView alloc] init];
    self.mySearchController.searchBar.qmui_usedAsTableHeaderView = NO;
    self.navigationItem.searchController = self.mySearchController;

运行上面的代码会导致崩溃

Guida contributor