Skip to content

Commit

Permalink
Fixed an issue which caused extra table row separators to appear abov…
Browse files Browse the repository at this point in the history
…e the search results table
  • Loading branch information
Kapeli committed Dec 24, 2017
1 parent 2d773ee commit 313893d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Dash/DHDBSearchController.m
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,18 @@ - (BOOL)searchDisplayController:(UISearchDisplayController *)controller shouldRe

- (void)searchDisplayController:(UISearchDisplayController *)controller willShowSearchResultsTableView:(UITableView *)tableView
{

if([self.viewController isKindOfClass:[UITableViewController class]])
{
[(UITableViewController*)self.viewController tableView].separatorStyle = UITableViewCellSeparatorStyleNone;
}
}

- (void)searchDisplayController:(UISearchDisplayController *)controller willHideSearchResultsTableView:(UITableView *)tableView
{
if([self.viewController isKindOfClass:[UITableViewController class]])
{
[(UITableViewController*)self.viewController tableView].separatorStyle = UITableViewCellSeparatorStyleSingleLine;
}
[self.searcher cancelSearch];
self.searcher = nil;
}
Expand Down

0 comments on commit 313893d

Please sign in to comment.