I'm trying to load images from the internet and, once they are loaded, insert them into a tableview row. Everything is working almost as expected. The problem comes up when the user scrolls the tableview too fast. In this case, some of the images are not inserted in the row, but in the top of the screen. It seems the row is somehow not valid anymore in these cases, maybe there is some kind of recycling done by the library, I don't know.
This is the code:
local function onRowRender(event) local row = event.row local function networkListener(event) if ( event.isError ) then print ( "Network error - download failed" ) else event.target.x = 71; event.target.y = row.contentHeight * 0.5 - 3; row:insert(event.target); end end display.loadRemoteImage( "http://blablabla", "GET", networkListener, blabla..".jpg"); end
Is there something wrong here?
Thanks a lot