This is a cell reuse problem because you are reusing cells but you aren't configuring the switch status (which should be done when you configure the cell text).
This requires that you update your source data (classDetail
/ cellData
) as the switches change so that you can use that information later when returning cells. This is both to prevent duplication of changes and the ensure that a selected switch doesn't change to a deselected switch after a cell is scroll off-screen.