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.
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)
-
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?
-
You could try passing a
className
to your tablerows.