title: selected row in custom cell doesn't pass complete data from segue to another view controller
body: <pre><code>    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
              self.data= [self.nameList objectAtIndex:indexPath.row];
              self.data= [self.rollList objectAtIndex:indexPath.row];
              [self performSegueWithIdentifier:@"DetailVC" sender:self];
          }
  </code></pre>
  
  <p>I've displayed student's name and roll number in custom cell. Now when i select one row i would like to pass those data to another <code>UIViewController</code> and display in labels. For I've one <code>NSObject</code> type file called 'Name' and i've one variable called 'data' which is of type 'Name'. Now here's my code in <code>didSelectRowAtIndexPath</code> where the <code>nameList</code> is overlapped by <code>rollList</code> which are stored on same variable <code>self.data</code>. if <code>rollList</code> line is removed then it works good. But when I store <code>rollList</code> in <code>self.data</code> it will overlap other.</p>
  
  <p>Where, <code>self.nameList</code> is variable of type <code>NSMutableArray</code> which contains name of student and similarly, <code>self.rollList</code> contains student's roll.</p>
  
  <p>Below is the code to pass data from segue. Here <code>DetailVC</code> is the <code>destinationViewController</code>, <code>vc.data</code> is the variable of type 'Name' and <code>self.data</code> is also the variable of same type.</p>
  
  <pre><code>     -(void) prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{
              if([segue.identifier isEqualToString:@"DetailVC"]){
                  DetailVC *vc = (DetailVC *) segue.destinationViewController;
                  vc.data = self.data;
              }
          }
  </code></pre>