Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dash/DHDBSearchController.m
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ - (void)searchDisplayControllerDidEndSearch:(UISearchDisplayController *)control
}

- (BOOL)searchDisplayController:(UISearchDisplayController *)controller shouldReloadTableForSearchString:(NSString *)searchString
{
{
if(self.isRestoring)
{
self.displayController.searchResultsTableView.allowsSelection = YES;
Expand Down Expand Up @@ -168,11 +168,11 @@ - (BOOL)searchDisplayController:(UISearchDisplayController *)controller shouldRe

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

}

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

[self.searcher cancelSearch];
self.searcher = nil;
}
Expand Down
6 changes: 6 additions & 0 deletions Dash/DHDocsetDownloader.m
Original file line number Diff line number Diff line change
Expand Up @@ -764,4 +764,10 @@ - (id)initWithCoder:(NSCoder *)aDecoder
return self;
}

- (void)viewWillDisappear:(BOOL)animated
{
[super viewWillDisappear:animated];
[self.searchController setActive:NO animated:YES];
}

@end
2 changes: 1 addition & 1 deletion Dash/UIView+DHUtils.m
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ CGPoint CGIncreasePoint(CGPoint point, CGFloat x, CGFloat y) {

CGSize CGIncreaseSize(CGSize size, CGFloat width, CGFloat height) {
return CGSizeMake(size.width+width, size.height+height);
}
}