Tencent/QMUI_iOS

将SearchController放到navigationItem.searchController会崩溃

Open

#1 229 ouverte le 16 avr. 2021

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)Objective-C (1 444 forks)batch import
help wanted

Métriques du dépôt

Stars
 (7 200 stars)
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