で 8 個のセルを使用していUITableViewます。各セルには、 、 、 などのコンポーネントのグループがUIButtonありUILabelますUISlider。6番目のセルを更新すると、1番目に反映されcellます。同様に、7番目のセルを更新すると、2番目のセルに反映されます。
どうすればこれを防ぐことができますか?
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {    
   return 1;
 }
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
   return viewcount;
 }
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {  
   NSString *MyIdentifier=@"mycell";
   ListCell1 *cell = (ListCell1 *)[tableView dequeueReusableCellWithIdentifier:MyIdentifier];
  if (cell == nil)
  {
    cell = [[ListCell1 alloc] initWithFrame:CGRectZero reuseIdentifier:MyIdentifier]; 
  }
  cell.selectionStyle = UITableViewCellSelectionStyleNone;
  UIButton *b=[buttonarray objectAtIndex:indexPath.row];
  cell.imageView.frame=CGRectMake(0, 0, 0, 0);
  b.imageView.frame=CGRectMake(0, 0, 30, 30);
  cell.imageView.image=b.imageView.image;
  return cell;
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {    
   UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
   ListCell1 *cell1 = (ListCell1 *)[tableView cellForRowAtIndexPath:indexPath];
   [cell1 addSubview:delbutton];
   delpath=indexPath;
 }
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
   return 100.0;
 }