UISwitch quick toggle multiple times.
- by Tejaswi Yerukalapudi
I was playing around my app and I was toggling a UISwitch really fast (who can resist?). So, I toggled it really fast for 10-15 times, an array that should contain the data from the table view cell that I have my switch in either has extra copies of the same cell sometimes, just one copy (the correct case) a few times and no data in it at all some times. The app works fine if it's toggled at normal speed.
I'm pretty sure this scenario won't really happen with my users, but I'm still curious as to why it's happening.
Thanks,
Teja