In a table of several sections, when removing checkmarkers installed in cells, I delete the elements of the pressed cell from the array.
removeAtIndex(indexPath.row)
works erratically, and then only after repeatedly removing checkmarkers from a large number of pressed cells, the application drops, then after the first removal. I can not fully understand how to correctly specify in the removeAtIndex
index of the pressed cell. On the screen, for example, the application fell only when removing the checkmarker from the last clicked cell (elements of the same cell remained in the array)