In my app, inorder to select preferences I created a custom cell with switch and load it in a table. There are 21 categories to select. My problem is when I ON the switches in the first section and scroll down and came back ,the switches are OFF. I think the problem is with reuse identifier. But I made it nil and yet no luck. I need to save the selected preferences in database and display it. Please help me in keeping the selected values intact. Thanks in advance.