Tencent/QMUI_iOS

将SearchController放到navigationItem.searchController会崩溃

Ouverte

#1 229 ouverte le 16 avr. 2021

 (0 commentaire) (0 réaction) (0 personne assignée)Objective-C (1 444 forks)batch import
help wanted

Métriques du dépôt

Stars
 (7 200 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

    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;

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

Guide contributeur