Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mj230816 opened this issue Apr 16, 2021 · 0 comments
Open

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

mj230816 opened this issue Apr 16, 2021 · 0 comments

Comments

@mj230816
Copy link

    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;

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant