We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
here is my source:
-(BOOL) swipeTableCell:(MGSwipeTableCell*) cell tappedButtonAtIndex:(NSInteger) index direction:(MGSwipeDirection)direction fromExpansion:(BOOL) fromExpansion { static NSString *CellIdentifier = @"cell"; NSIndexPath * indexpath = [self.tableView indexPathForCell:cell]; Kids *aKid = nil; if (self.tableView == self.searchDisplayController.searchResultsTableView) { aKid = [searchResults objectAtIndex:indexpath.row]; } else { aKid = [kids objectAtIndex:indexpath.row]; } }
self.tableView == self.searchDisplayController.searchResultsTableView is always false...
self.tableView == self.searchDisplayController.searchResultsTableView
thanks in advance,
Eric
PS: Your control is very nice, continue!
The text was updated successfully, but these errors were encountered:
Hi Eric.
I have just tested MGSwipeTableCell with searchDisplayController. The bug seems to be in your code, try this:
-(BOOL) swipeTableCell:(MGSwipeTableCell*) cell tappedButtonAtIndex:(NSInteger) index direction:(MGSwipeDirection)direction fromExpansion:(BOOL) fromExpansion { static NSString *CellIdentifier = @"cell"; NSIndexPath * indexpath = [self.tableView indexPathForCell:cell]; Kids *aKid = nil; if (!indexPath) { indexPath = [self.searchDisplayController.searchResultsTableView indexPathForCell:cell]; aKid = [searchResults objectAtIndex:indexpath.row]; } else { aKid = [kids objectAtIndex:indexpath.row]; } }
Sorry, something went wrong.
Hi MortimerGoro,
excellent! It works!
thank you very much.
best regards,
I have the same problem. Your solution works great. Thank you.
No branches or pull requests
Hi,
here is my source:
self.tableView == self.searchDisplayController.searchResultsTableView
is always false...
thanks in advance,
Eric
PS: Your control is very nice, continue!
The text was updated successfully, but these errors were encountered: