UITableView があり、カスタムセルでテーブルビューを表示しています。
私の問題は、セルが何度も作成されているテーブルビューをスクロールするときです。
これを解決するのを手伝ってください。
ありがとう。
//cellForRowAtIndexPath
 -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:  (NSIndexPath *)indexPath 
{
 ListOfProductsCell *cell =(ListOfProductsCell *)[tableView dequeueReusableCellWithIdentifier:@"tableCell"];
if (cell==nil) {
        NSArray *nib =[[NSBundle mainBundle] loadNibNamed:@"ListOfProductsCell" owner:self options:nil];
    cell = (ListOfProductsCell *)[nib objectAtIndex:0];
}
if (tableView == self.searchDisplayProduct.searchResultsTableView) {
    searchProductItemDit=[searchProductListArry objectAtIndex:indexPath.row];
    NSLog(@"searchdit:%@",searchProductItemDit);
    cell.itemNameLbl.text= [searchProductItemDit objectForKey:@"name"];
    self.searchDisplayProduct.searchResultsTableView.separatorColor=[UIColor colorWithRed:200.0 green:0.0 blue:0.0 alpha:1.0];
} else {
    productItemDit=[productListArry objectAtIndex:indexPath.row];
    NSLog(@"dit:%@",productItemDit);
    cell.itemNameLbl.text=[productItemDit objectForKey:@"name"];
}
cell.itemImg.image = [UIImage imageNamed:@"profp.jpg"];
return cell;
}