Titanium Community Questions & Answer Archive

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

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({
    style: Titanium.UI.iPhone.TableViewStyle.GROUPED

>Thanks for any insight

— asked September 26th 2010 by Blake Bowling
  • crash
  • createtableview

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.

    — answered December 29th 2010 by Jonathan Chaffer
    1 Comment
    • You're a life saver, it works now

      — commented January 7th 2011 by Wouter Monkhorst
  • 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

    — answered March 4th 2012 by Srdjan Lukic-Bardak
  • I hade the same problem today. I'm doing a clean build and retrying.
    Ok, it worked! Good one!

    — answered March 5th 2012 by Emanuele Salamone
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.