Skip to content

Commit

Permalink
[models] Pass the indexPath as the second argument to table actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
jverkoey committed Apr 5, 2013
1 parent 72a2a59 commit 83790d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/models/src/NITableViewActions.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 83790d0

Please sign in to comment.