Table View Library v1.3

Hello all,

It seems that there an issue with tableview 1.3 : specially in moveCat function.

Terminal Shows

Runtime error ...project/tableView.lua:364: attempt to compare number with nil stack traceback: [C]: ? .../tableView.lua:364: in function <...><br> ?: in function <?:186><br>

the problem appears when i’m removing the list and switching to another screen,
I think that the problem comes from a missing “removeEventListener”.

The problem disapear when i don’t use categories.

Does anyone have the same problem ? [import]uid: 3638 topic_id: 2553 reply_id: 302553[/import] </…>

Hi,

Can you provide some more info about your code? I ran the ListView2 sample from the SDK (SampleCode/Interface/ListView2) which uses categories and didn’t see this issue.

thanks,
Tim [import]uid: 8196 topic_id: 2553 reply_id: 7485[/import]

hello Tim,

Sorry for being long, here’s what i found :

How to see the problem :

  • Build a list with categories
  • when you’re at the top of the list scroll down
  • remove the group that contains the list view

How to solve

  • line 363, 348, 353

instead of :
[lua] Runtime:addEventListener(“enterFrame”, moveCat )[/lua]
replace with
[lua] Runtime:removeEventListener(“enterFrame”, moveCat )[/lua]

Tell me if i’m wrong, maybe i’m missing something :slight_smile:

Thanks, [import]uid: 3638 topic_id: 2553 reply_id: 8053[/import]

Hi

I want to setup the table screen with a tab bar at the bottom of the screen. However, when I tab bar call the table screen, the table will cover the table, need to scroll to the bottom boundary to show the tab bar again.

Does anyone know how to limit the table screen height using this tableview library? (not the table height boundary here) [import]uid: 22558 topic_id: 2553 reply_id: 27026[/import]

You just re-insert the tab-bar into the stage group and it will be over the top of the list view in the display hierarchy

like this:

display.getCurrentStage():insert(tab_bar) [import]uid: 6175 topic_id: 2553 reply_id: 27085[/import]