Tableview with many rows and groups crash app
Hi
I do not what happened but if I have many grouped table views and rows, the app crashes.
When I reduce the number of rows, the app is ok.
Is this a bug?
2 Answers
-
Accepted Answer
Hi Peter,
Have you specified className for rows in your table? You need to apply a className property unigue to each style of row you are using. I think this has to do with recycling/optimising load of row objects in Cocoa Touch/Obj-C.
cheers,
Chris. -
Found the bug!
I added a switch control to a row and the app is not happy with that.
Previously, the app was ok because I have only a few other rows. When I add more rows, the app crash.
When I remove rows bit by bit, I discover it has a tolerance. After a certain number of rows (my case 10), the app crashed.Removing the switch control solved the problems. Now instead of using a switch control to designate ON/OFF, I just use the hasCheck property and toggle it on/off like a switch..
Thanks!