I have a TableView to which in each cell I add several imageView. In a moment of the application I have to change the imgeView of a cell in one position for another imageView therefore I do a reload of the tableView. The problem is that when doing the reload, it adds the new one over the previous imageView of the cell. What I want is that before doing the reload this cell is deleted all the subviews, but I can not find the method to do it.
When I add the imageView I do it as 'imageView.tag = indexPath.row;' and 'cell addSubview: imageView'
To erase the above, at the start of the load code of the tableView I do it as: '[[cell viewWithTag: indexPath.row] removeFromSuperview];' so when I do the reload I also erase it but it does not work for me.