IPhone : Table view doesn't retain the selected values after scrolling

on Wednesday, April 8, 2015

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.


0 comments:

Post a Comment