Tencent/QMUI_iOS

将SearchController放到navigationItem.searchController会崩溃

Open

#1,229 opened on 2021年4月16日

GitHub で見る
 (0 comments) (0 reactions) (0 assignees)Objective-C (1,444 forks)batch import
help wanted

Repository metrics

Stars
 (7,200 stars)
PR merge metrics
 (30d に merged PR はありません)

説明

    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;

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

コントリビューターガイド