Я хочу изменить конкретный UIImageView
внутри UITableViewCell
с этим:изображения меняются случайным образом в ячейке таблицы просмотра
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
[self.tableView beginUpdates];
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
UYLTextCell *textCell = (UYLTextCell *)cell;
textCell.selected = YES;
//get and show the image at selected cell
textCell.testImage.image = [UIImage imageNamed:@"image280280.jpg"];
//[tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationAutomatic];
[self.tableView endUpdates];
}
Но то, что произошло некоторое ячейка имела свое изображение View, даже если она не была нажата.
Можете ли вы опубликовать реализацию метода 'cellForRowAtIndexPath'? –