I have taken UISwitch from interface builder. That time it’s state is ON.After run application When I change it’s position to OFF and go to other screen and again back to that screen, switch sates shows ON not OFF which i set previously. Any one can tell me how i can show UISwitch position or state which I set. Now it always show ON when I come to this switch screen. Please help me. Thanks in advance.
I have taken UISwitch from interface builder. That time it’s state is ON.After run
Share
When you change the value, save it to NSUserDefault, so when you come back that screen again, you look at the preferences value and set it to the switch