如何将 UISearchDisplayController 更改为亮而不是暗?现在我的应用是这样的:
而音乐应用程序是这样的(首选):
我找不到任何相关的属性或无法改变色调的东西。这是我的相关代码:
UISearchBar *searchBar = [[UISearchBar alloc] init];
[searchBar setDelegate:self];
[searchBar setSearchBarStyle:UISearchBarStyleMinimal];
[searchView addSubview:searchBar];
[self setSearchBar:searchBar];
UISearchDisplayController *searchDisplayController = [[UISearchDisplayController alloc] initWithSearchBar:searchBar contentsController:self];
[searchDisplayController setDelegate:self];
[searchDisplayController setSearchResultsDelegate:self];
[searchDisplayController setSearchResultsDataSource:self];
[self setSearchBarDisplayController:searchDisplayController];