@implementation OriginViewController
{
  ObjectType *object;
}
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    object = // whatever value you want to store
}
-(void)prepareForSegue:(UIStoryboardSegue *)segue
{
    DestinationViewController *destVC = [segue destinationViewController];
    [destVC setProperty:object];
}