Titanium Community Questions & Answer Archive

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

change table view font

Hello,

I use a table view with many custom rows, containing a label with a certain color and font-size to show the title of a row. The other row attributes are standard things like left image and background-image.

Unfortunately the app crashes quite often when building the table view with custom rows. I usually show 50+ custom rows.
Using the default appearance of the table view instead works fine.

Can I adjust somehow table view font color/size, so i do not have to build custom rows?

Many thx,
Florian

— asked May 3rd 2010 by florian spier
  • crash
  • font-size
  • table
1 Comment
  • I have the same issue - I find that TableViews with large numbers of rows containing other controls (views, labels etc) cause performance to degrade to unusable levels on the iPad. As such it's frustrating that TableViewRows don't have a font property to set.

    — commented October 6th 2010 by Toby Mathews

2 Answers

  • Do you add a unique className for each type of row you are displaying ?

    — answered May 3rd 2010 by Dan Tamas
    permalink
    0 Comments
  • +1. You need a unique className in each row otherwise iPhone tries to reuse the row that moves out of the screen. Since the rows are not same this will cause a crash.

    — answered May 3rd 2010 by Masood Nasir
    permalink
    0 Comments
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.