UISwitch quick toggle multiple times.

Posted by Tejaswi Yerukalapudi on Stack Overflow See other posts from Stack Overflow or by Tejaswi Yerukalapudi
Published on 2010-04-21T18:38:52Z Indexed on 2010/04/21 18:43 UTC
Read the original article Hit count: 277

Filed under:
|

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

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uiswitch