Tencent/QMUI_iOS

将SearchController放到navigationItem.searchController会崩溃

Aberta

#1.229 aberto em 16 de abr. de 2021

 (0 comentário) (0 reação) (0 responsável)Objective-C (1.444 forks)batch import
help wanted

Métricas do repositório

Stars
 (7.200 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

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;

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

Guia do colaborador