title: iOS passing data from table cell to new view controller
body: <p>I have a table cell that I created custom, and each table cell has a pointer to its own contact object. I want to pass that pointer to another view controller to show more detail on it. I created my segue from the table cell to the view controller in interface builder. I am having trouble passing my value over, this is my prepareForSegue</p>
  
  <pre><code>- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
  {
      if([segue.identifier isEqualToString:@"contactDetailSegue"]) {
          ContactDetailViewController *destination = segue.destinationViewController;
          Contact *contactToSend = (ContactTableViewCell *)sender.contact;
          destination.contact = contactToSend;
      }
  }
  </code></pre>
  
  <p>My problem is I don't quite understand the role of sender in the function, I believe if I use interface builder the way I did then sender will be the table cell chosen. Should I then be able to take my contact pointer and pass it to my destination? I currently have a "Property 'contact' not found on object of type '__strong id'"</p>
  
  <p>thanks</p>