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.separatorStyle broken in 1.3?

I used this code to hide the row separators in a tableview in Titanium before:

separatorStyle: Titanium.UI.iPhone.TableViewSeparatorStyle.NONE,

However, as of 1.3 this gives an error.
Any idea's? Did this break in 1.3?

— asked May 18th 2010 by Martijn Pannevis
  • iphone
  • mobile
  • none
  • separator
  • table
0 Comments

3 Answers

  • Same problem here with 1.5.1
    Solved it by deleting the whole build/iPhone dir and let it rebuild everything.
    This remedy has saved me from funny/strange bugs quite a few times already.

    — answered March 1st 2011 by ronald van woensel
    permalink
    0 Comments
  • could you post your tableview code so I could drop it in an app.js file to see what you're seeing?

    — answered May 18th 2010 by Kevin Whinnery
    permalink
    0 Comments
  • Reproducing this was harder than I expected… I made a new app (the standard default app), but there it works. However, in my app, it doesn't.
    I can reproduce this simply by doing:

    alert(Titanium.UI.iPhone.TableViewSeparatorStyle.NONE);
    

    On a new app this gives 0, on my app it gives
    "Result of expression 'Titanium.UI.iPhone.TableViewSeparatorStyle' [undefined] is not an object."

    If I now simply do

    separatorStyle: 0,
    

    my problem is solved: it works.. However, I don't understand why Titanium.UI.iPhone.TableViewSeparatorStyle.NONE isn't defined in my app.

    — answered May 18th 2010 by Martijn Pannevis
    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.