Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[models] Pass the indexPath as the second argument to table actions.

  • Loading branch information...
commit 83790d0f20552096ee5341b65e340e2a5267a610 1 parent 72a2a59
@jverkoey authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  src/models/src/NITableViewActions.m
View
3  src/models/src/NITableViewActions.m
@@ -433,6 +433,9 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
if (methodSignature.numberOfArguments >= 3) {
[invocation setArgument:&object atIndex:2];
}
+ if (methodSignature.numberOfArguments >= 4) {
+ [invocation setArgument:&indexPath atIndex:3];
+ }
[invocation invokeWithTarget:self.target];
NSUInteger length = invocation.methodSignature.methodReturnLength;
Please sign in to comment.
Something went wrong with that request. Please try again.