Tencent / QMUI_iOS

QMUI iOS——致力于提高项目 UI 开发效率的解决方案
http://qmuiteam.com/ios
Other
7.08k stars 1.38k forks source link

将SearchController放到navigationItem.searchController会崩溃 #1229

Open mj230816 opened 3 years ago

mj230816 commented 3 years ago
    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;

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