Titanium Community Questions & Answer Archive

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

Images being dropped

I have a TableView showing a list of 'mugshots'. Each row also has an 'info' button which is the same image (a small .png).

In the previous version of the iPhone SDK 3.2 this worked as it should with all the images and 'info' buttons rendering in their rows.
Since upgrading to SDK 4.0 (and 4.0.1) the images in the initial view are fine but the rest of the mugshots only render as one scrolls down and the rest of the 'info' icons are missing completely!

My first thought was memory - is this to do with images only being rendered when needed to save memory. But I have no idea what's going on with the 'info' buttons - they just stop. As a final word each row is built from the same code so there should be no difference.

— asked August 18th 2010 by Patrick Mounteney
  • images
  • iphone
1 Comment
  • Thanks guys for the help on this - I have fixed the issue with my 'info' icons disappearing halfway down a TableView. Seems "url" is depreciated in an ImageView which I didn't appreciate until I'd added the fix for the Ti.API.info bug and got some diagnostics back!
    However, I still still haven't found a fix for the strange case that images outside of the initial view area only slowly reveal themselves as one scrolls down - as if they are some guilty secret!

    — commented August 19th 2010 by Patrick Mounteney

3 Answers

  • Well if u copy code to another app.js then i feel u have to change the build path force it to full build

    go to the root of your project, in build/iphone and delete the build folder( so delete the folder myApp/build/iphone/build)

    — answered August 18th 2010 by Varun Atluri
  • Thanks Varun,

    I did try a re-build, in fact several of them, but with no luck. The images outside the initial iPhone view only render as one scrolls and the all the 'info' images I spoke of are nowhere to be seen beyond that initial view. It's most odd.

    Wasn't sure what your line about coping the code to another app meant - are you asking if I'd done that or suggesting I should?

    — answered August 18th 2010 by Patrick Mounteney
  • You could try passing a className to your tablerows.

    — answered August 18th 2010 by Richard Venneman
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.