title: How to set two array data in one cell content of custom tableview in ios?
body: <p>hello I am beginner in iOS I have created custom table view and I have Two array then I want to set both array data together in simultaneously one by one cell content in table view I  show image which i want.. </p>
  
  <p>Please refer : <a href="http://i.stack.imgur.com/WIkaf.png" rel="nofollow">http://i.stack.imgur.com/WIkaf.png</a></p>
  
  <pre><code>  NSMutableArray *SearchPatientCode;
    NSMutableArray *SearchPatientName;
    UITableView *table_SearchPatient;
    SearchPatientCode=[[NSMutableArray alloc]initWithObjects:@"PH230130420",@"PH230420321",@"Ph450362120", nil];
  
    SearchPatientName=[[NSMutableArray alloc]initWithObjects:@"Rahul Sharma",@"Amit   kumar",@"anil sharma", nil];
  
   table_SearchPatient=[[UITableView alloc]initWithFrame:CGRectMake(130,40,170,250)style:UITableViewStylePlain];
   table_SearchPatient.delegate=self;
   table_SearchPatient.dataSource=self;
   table_SearchPatient.layer.borderWidth = 2.0;
   table_SearchPatient.layer.borderColor = [UIColor grayColor].CGColor;
   [self.view addSubview:table_SearchPatient];
  
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath: (NSIndexPath *)indexPath
    {
    static NSString *MyIdentifier = @"MyIdentifier";
  
  UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:MyIdentifier];
  
  if(tableView==table_SearchPatient)
  {
  
      if (cell == nil)
      {
          cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:MyIdentifier] ;
  
      }
  
      cell.textLabel.text =[NSString stringWithFormat:@"%@ /n %@",[SearchPatientCode objectAtIndex:indexPath.row],[SearchPatientName objectAtIndex:indexPath.row]];
      cell.textLabel.font = [UIFont fontWithName:@"Helvetica-Bold" size:10.0f];
     // cell.detailTextLabel.text=[SearchPatientName objectAtIndex:indexPath.row];
  }
  return cell;
   }
  </code></pre>
  
  <p>I am using this But this is not show as I want ...Solve this problem!!</p>