title: How to hide a particular row button in Dynamic UITableViewCell in Objective C?
body: <p>I have implemented a Dynamic TableView, Textfield and Buttons. My problem is, when I hide the button in the first row of my <code>UITableViewCell</code>, the other five rows of cell button also get hidden.</p>
  
  <p>Can any one suggest a solution for this issue?</p>
  
  <p>I have tried below code..</p>
  
  <pre><code>ladiesdetails=[[NSMutableArray alloc]initWithObjects:@"2",@"0",@"0",@"0",@"0",@"0", nil];
  
  
  
  - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
  {
      // Return the number of rows in the section.
      return 6;
  }
  - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
  
  
      static NSString *CellIdentifier = @"cell1";
  
      cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
  
      if (cell == nil) {
          cell = [[passengerdetailcell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
      }
  if([[ladiesdetails objectAtIndex:indexPath.row] intValue]==2)
  {
  cell.malebutton.hidden=yes;
  }
  return cell;
  }
  </code></pre>