I’ve got a tableView with tappable rows that open external urls (youtube videos)
The first row has isCategory parameter == true.
So it sticks to the top (as it should.)
And the following rows then slide up underneath it (as they should.)
Great so far…
The problem is that if I tap the Category row, the row directly behind it receives the tap and opens its url.
Not good
Can anyone suggest how to get around this? Is it a bug?
Thanks people!
My onRowTouch code is below:
p.s. how do you enter code into forums so that it displays nicely like in the corona proj manage IDE.
is it just a print screen?
–================================================
– onEvent listener for the tableView
local function onRowTouch( event )
local row = event.target
local rowGroup = event.view
if event.phase == “press” then
if not row.isCategory then rowGroup.alpha = 0.5; end
elseif event.phase == “tap” then
if not row.isCategory then
row.reRender = true
system.openURL( rowInfo[event.index].theURL)
end
elseif event.phase == “release” then
if not row.isCategory then
row.reRender = true
end
end
return true
end [import]uid: 194387 topic_id: 35197 reply_id: 335197[/import]