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?
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. -
could you post your tableview code so I could drop it in an app.js file to see what you're seeing?
-
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.