Tencent/QMUI_iOS

将SearchController放到navigationItem.searchController会崩溃

開放

#1,229 建立於 2021年4月16日

 (0 則留言) (0 個反應) (0 位負責人)Objective-C (1,444 個分叉)batch import
help wanted

倉庫指標

星標
 (7,200 顆星)
PR 合併指標
 (30 天內沒有已合併 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;

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

貢獻者指南