I have a UITableView with custom cell that I have built. In each custom cell, I have added a UISwitch. My tableview is only 100px tall. When I have 6 or more cells, it seems to start recycling the UISwitches on the cells, so if I change the value of the switch in cell 0, the switch at cell 5 will also change its value to match that of cell 0. Is there a way to control the memory to prevent this from happening?
Thanks.
I used tags to keep track of which switches were which in the table view by using
I was then able to go back and reference the correct switch in my code.