|
@@ -105,9 +105,14 @@ static NSMutableDictionary *hanziStringDict = nil;
|
|
|
self.searchController.searchResultsUpdater = self;
|
|
|
self.searchController.delegate = self;
|
|
|
self.searchController.dimsBackgroundDuringPresentation = NO;
|
|
|
- if (! @available(iOS 13, *)) {
|
|
|
+
|
|
|
+ if (@available(iOS 13, *)) {
|
|
|
+ self.searchController.searchBar.searchBarStyle = UISearchBarStyleDefault;
|
|
|
+ self.searchController.searchBar.searchTextField.backgroundColor = [WFCUConfigManager globalManager].naviBackgroudColor;
|
|
|
+ } else {
|
|
|
[self.searchController.searchBar setValue:WFCString(@"Cancel") forKey:@"_cancelButtonText"];
|
|
|
}
|
|
|
+
|
|
|
if (@available(iOS 9.1, *)) {
|
|
|
self.searchController.obscuresBackgroundDuringPresentation = NO;
|
|
|
}
|