Commit 603d1897 authored by Pierre SAGASPE's avatar Pierre SAGASPE Committed by Felix Paul Kühne

fix the first tap twice on navbar for show or hide search bar

Signed-off-by: Felix Paul Kühne's avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 8a07a0f2
......@@ -106,6 +106,7 @@
_searchDisplayController.searchResultsTableView.separatorStyle = UITableViewCellSeparatorStyleNone;
_searchDisplayController.searchResultsTableView.indicatorStyle = UIScrollViewIndicatorStyleWhite;
_searchBar.delegate = self;
_searchBar.hidden = YES;
//self.tableView.tableHeaderView = _searchBar;
//self.tableView.contentOffset = CGPointMake(0, CGRectGetHeight(_searchBar.frame)); // -> hide search bar to load
......
......@@ -160,6 +160,7 @@
if (SYSTEM_RUNS_IOS7_OR_LATER)
_searchDisplayController.searchBar.searchBarStyle = UIBarStyleBlack;
_searchBar.delegate = self;
_searchBar.hidden = YES;
UITapGestureRecognizer *tapTwiceGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapTwiceGestureAction:)];
[tapTwiceGesture setNumberOfTapsRequired:2];
......
......@@ -226,6 +226,7 @@ static NSString *kDisplayedFirstSteps = @"Did we display the first steps tutoria
_searchDisplayController.searchResultsTableView.separatorStyle = UITableViewCellSeparatorStyleNone;
_searchDisplayController.searchResultsTableView.indicatorStyle = UIScrollViewIndicatorStyleWhite;
_searchBar.delegate = self;
_searchBar.hidden = YES;
UITapGestureRecognizer *tapTwiceGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapTwiceGestureAction:)];
[tapTwiceGesture setNumberOfTapsRequired:2];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment