Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Tableview with many rows and groups crash app


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?

— asked March 30th 2010 by Peter Lum
  • app
  • crash
  • groups
  • rows
  • tableview

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.


    — answered March 30th 2010 by Chris Reed
  • 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..


    — answered March 30th 2010 by Peter Lum
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.