|
@@ -44,8 +44,8 @@ extern const NSInteger BLUR_TOPBAR_TAG;
|
44
|
44
|
search.searchBar.placeholder = self.searchBarPlaceholder;
|
45
|
45
|
}
|
46
|
46
|
viewController.navigationItem.searchController = search;
|
47
|
|
- // enable it back if needed on componentDidAppear
|
48
|
|
- viewController.navigationItem.hidesSearchBarWhenScrolling = NO;
|
|
47
|
+
|
|
48
|
+ viewController.navigationItem.hidesSearchBarWhenScrolling = [self.searchBarHiddenWhenScrolling boolValue];
|
49
|
49
|
|
50
|
50
|
// Fixes #3450, otherwise, UIKit will infer the presentation context to be the root most view controller
|
51
|
51
|
viewController.definesPresentationContext = YES;
|