Tencent/QMUI_iOS

将SearchController放到navigationItem.searchController会崩溃

オープン

#1,229 opened on 2021/04/16

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Objective-C (1,444 件のフォーク)batch import
help wanted

Repository metrics

Stars
 (7,200 個のスター)
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;

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

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