So i put the first test build onto a device today.
On my simulator i am pulling some data from a local database and populating a table view with it.
It shows no problem and the debug info is confirming the data is being read from the database.
On my ipad mini the text does not appear, there are no errors in any console and the debug messages are confirming that the text is being read from the database successfully, so i am fairly stuck as to what the problem is here.
I am quite worried that there are differences on actual devices and i have been unable to find anything in any docs about what to look out for when testing on device.
Here is the code, any hints would be great as its a pretty basic bug to stop the show with eh!
Thanks,
Jez
[code]
rows = db.getSalableItems();
for i=1,#rows do
local function onRowRender( event )
local row = event.target
local rowGroup = event.view
–background = display.newImage(imgDir…“rowBG_ON.png”,true)
print(rows[event.id].cost)
boughtString = “Buy Now!!”
if rows[event.id].purchased == 1 then
boughtString = “yours already”
end
–local str = … " - cost:" … rows[event.id].cost – … " : " … boughtString
background2 = display.newText("Item : " … rows[event.id].itemname,75,15,native.systemFont,36)
background3 = display.newText("Cost : " … rows[event.id].cost ,75,35,native.systemFont,36)
background4 = display.newText("Purchased : " … boughtString ,155,35,native.systemFont,36)
background2:setTextColor( 0,0,0 )
background3:setTextColor( 0,0,0 )
background4:setTextColor( 0,0,0 )
–rowGroup:insert(background)
rowGroup:insert(background2)
rowGroup:insert(background3)
rowGroup:insert(background4)
end
list:insertRow{
id = i,
onEvent=onRowTouch,
onRender=onRowRender,
height=80,
lineColor={110, 233, 255,255}
}
i = i+1
end
db.closeDB()
[/code] [import]uid: 194492 topic_id: 36494 reply_id: 336494[/import]