Titanium Community Questions & Answer Archive

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

Getting an invalid image type error, not sure why

I get this:

[WARN] invalid image type. expected either TiBlob or TiFile, was: TiFilesystemFileProxy in -[TiUIImageView setImage_:] (TiUIImageView.m:595)
[ERROR] The application has crashed with an unhandled exception. Stack trace:

This has only started happening since going from SDK3.1 to SDK4.0 with Titanium 1.3.2 on iPhone.

Any ideas?

— asked June 23rd 2010 by Stephen Page
  • crash
  • image
  • invalid
  • tiblob
  • tifile
  • type
0 Comments

1 Answer

  • Accepted Answer

    well i noticed that for me that error was happening because i was trying to assign an image to an imageView by using the "image" property instead of the "url" property (which has since been deprecated).

    using the new "image" property works great in mobile sdk 1.3.2 but breaks the app inside mobile sdk 1.3
    literally just found that out because i was going to switch back to sdk 1.3 because the tableView's are SO sluggish on my actual device when using mobile sdk 1.3.2!

    hope that helps!

    rocksteady,
    danno~

    — answered June 24th 2010 by danno watts
    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.