Skip to content

Instantly share code, notes, and snippets.

@matteom
Created November 19, 2013 15:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matteom/7547296 to your computer and use it in GitHub Desktop.
Save matteom/7547296 to your computer and use it in GitHub Desktop.
Passing data from the table view controller to the lead view controller
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
PCLeadViewController *leadViewController = segue.destinationViewController;
NSIndexPath *selectedRowIndexPath = [self.tableView indexPathForSelectedRow];
leadViewController.lead = self.leads[selectedRowIndexPath.row];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment