Titanium Community Questions & Answer Archive

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

1.3.2 bug - tableview crashed on RowAnimationStyle

I posted this during the weekend, app crashed on 2nd click if the recordset is larger than 12, turned out to be a real bug.

I never had any issues with that in past, just the 1.3.2 upgraded that kept crashing if rows number is larger than 12, once the data is loaded, scroll down, click on the row, return then click on any row again, it would crash even with no data on the child "detail".

It's weird though, i have row formed from database(as cached data), setData with RowAnimationStyle, no crash but as soon as data are queried from remote url and it crashed on RowAnimationStyle.

Anyway, i removed RowAnimationStyle on both cached and remote setData and all are well!

tableview.setData(data, {animationStyle:Titanium.UI.iPhone.RowAnimationStyle.DOWN});

http://developer.appcelerator.com/question/42141/132-bug-tableview-detail-crash-on-2nd-click

— asked July 12th 2010 by Daniel Lim
  • 1.3.2
  • bug
  • crash
  • rowanimationstyle
  • tableview
0 Comments

2 Answers

  • Are you setting a unique className for each row in the table?
    On iOS it has to be unique for the lifetime of the table - so any new data also has to have a totally unique className.

    — answered July 12th 2010 by David Ashwood
    permalink
    0 Comments
  • Yes, className was there since last versions.

    added : btw, i think className has to do with crash on scrolling rows but not when you click the row?

    Thanks

    — answered July 12th 2010 by Daniel Lim
    permalink
    1 Comment
    • It's hard to tell - sometimes the initial set of data is fine and it's only when you add another set of data where the className overlaps that the crash occurs.

      — commented July 12th 2010 by David Ashwood
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.