Titanium Community Questions & Answer Archive

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

How to handle imageView image errors

Hi,

When a particular image fails to load in ImageView due to network error or some other error, how can we capture that error?

For example:

[ERROR] Failed to load image: http://www.example.com/example.jpg IHTTPRequestErrorDomain Code=2 "The request timed out" UserInfo=0x6c90f10 {NSLocalizedDescription=The request timed out

How can I capture and handle this error?

regards
Anshu Prateek

— asked November 28th 2010 by Anshu Prateek
  • ios
0 Comments

1 Answer

  • it appears that the error you are seeing is swallowed up by the API and no events or errors bubble up to the js layer

    TiImageViewProxy

    — answered November 28th 2010 by Aaron Saunders
    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.