Tencent/QMUI_iOS

将SearchController放到navigationItem.searchController会崩溃

Open

#1,229 创建于 2021年4月16日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)Objective-C (1,444 fork)batch import
help wanted

仓库指标

Star
 (7,200 star)
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;

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

贡献者指南