Здравствуйте, я недавно встречался с проблемой на UITableViewCellUITableViewCell странного поведения
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"ContentCell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
CloseButton *cButton = (CloseButton *)[cell viewWithTag:20];
[cButton addTarget:self action:@selector(deleteDetector:) forControlEvents:UIControlEventTouchUpInside];
...
return cell;
}
Позже, на моем удалении детектора:
-(void)deleteDetector:(id)sender {
CloseButton *cButton = (CloseButton *)sender;
[cButton setHidden:YES];
}
Когда я начинаю прокрутки вниз, чтобы понравиться 1000 ячеек, кнопки начинают появляться, а некоторые из них начинают исчезать.