noob - createTableView crashing
weird things going on and not sure why.
First attempt to copy past KitchenSink xml_rss.js (which works for me in simulator) and paste that into a file in my project.
>It crashes on createTableView (i think) and shows this error:
[WARN] attempted to load: TiUITableViewProxy
[ERROR] The application has crashed with an unhandled exception. Stack trace:
>I stripped down my code to this, which is from an example online and it still crashes. Am I missing a library or something?
var win = Titanium.UI.currentWindow;
win.backgroundColor = '#202020';
var data = [
{title:'Language: ENGLISH', hasChild:true, header:'Appearance'},
{title:'Allow Streaming ', header:'Streaming'}
];
var tableView=Titanium.UI.createTableView({
data:data,
style: Titanium.UI.iPhone.TableViewStyle.GROUPED
});
win.add(tableView);
>Thanks for any insight
3 Answers
-
I ran into the same thing today; turns out the problem was some old build files that weren't getting properly refreshed after the code updates. Try emptying out the build/iphone folder and re-building the project.
-
I had the same issue, and did what Jonathan Chaffer said, and it all worked after. Even though it is 1 year old post, it still works/helps :) Thanks
-
I hade the same problem today. I'm doing a clean build and retrying.
Ok, it worked! Good one!