Tencent/QMUI_iOS
将SearchController放到navigationItem.searchController会崩溃
Aperta
#1229 aperta il 16 apr 2021
help wanted
Metriche repository
- Star
- (7200 stelle)
- 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;
运行上面的代码会导致崩溃