title: how to load two tableview in same view controller with cell for index row?
body: <p>i am facing one module consists to load two different <code>UITableView</code> in same <code>UIViewController</code> i know where i doing mistake, the problem is cell for row AtIndexpath in table view method. i getting only one <code>UITableView</code> in <code>UIViewController</code> but my secondviewcontroller not return any values in             cell.</p>
  
  <p>here my sample code for ur reference:</p>
  
  <pre><code>- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
  {
  if (tableView==table) {
       return [self.arryData count];
  }
  else
  return [tblArr count];
  NSLog(@"tabeCount==&gt;%lu",(unsigned long)tblArr.count);
  
  }
  
  - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
  {
  return 55;
  }
  
  - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
   {
  static NSString *CellIdentifier  = @"Cell";
  static NSString *CellIdentifier1 = @"Cell";
  
         dequeueReusableCellWithIdentifier:CellIdentifier];
  UITableViewCell *cell;
  mobilePlanDetailsCellTableViewCell *plan_cell;
  
  if (tableView==table) {
      cell = [self.table dequeueReusableCellWithIdentifier:CellIdentifier];
      if (cell == nil) {
          cell = [[UITableViewCell alloc]
                  initWithStyle:UITableViewCellStyleDefault
                  reuseIdentifier:CellIdentifier];
      }
      cell.textLabel.font = [UIFont systemFontOfSize:12];
      cell.textLabel.text = [self.arryData objectAtIndex:indexPath.row];
  
  
  }return cell;
  
  if (tableView==planTable) {
  
      plan_cell =  [self.planTable dequeueReusableCellWithIdentifier:CellIdentifier1];
      if (plan_cell == nil) {
          NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"mobilePlanDetailsCellTableViewCell" owner:self options:nil];
          plan_cell = [nib objectAtIndex:0];
      }
  
      plan_cell.label.text = [[tblArr objectAtIndex:indexPath.row] objectForKey:@"Answer1"];
      plan_cell.Label2.text = [[tblArr objectAtIndex:indexPath.row]objectForKey:@"answer2"];
      plan_cell.Label3.text = [[tblArr objectAtIndex:indexPath.row]objectForKey:@"answer3"];
      plan_cell.label4.text = [[tblArr objectAtIndex:indexPath.row]objectForKey:@"answer4"];
  
   }
      return plan_cell;
  }
    - (void) tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath {
  [tableView setBackgroundColor:[UIColor whiteColor]];
  [cell setBackgroundColor:[UIColor whiteColor]];
  
   }
  </code></pre>