iOS Question Multiple tableviews on designer

IDDGroup

Member
Licensed User
Longtime User
Im having a tough time getting this to work.

I am trying to have 2 tableviews on 1 screen (ipad screen)

i can get one to work fine, but i cant put anything in the cells.

is there something i have to do to get a 2nd?

I CAN change the cell height in the 2nd one, so i know it has addressability. but just trying to add a single line to the cell doesnt work. comes up blank

any ideas?
 

IDDGroup

Member
Licensed User
Longtime User
actually, i think this is a bug in the designer.

I am able to manually create the 2nd tableview in the program (added it to a panel)
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
While I don't recommend using TableView there shouldn't be a problem adding multiple tables with the designer.

I tried it and it worked fine:
B4X:
Private Sub Application_Start (Nav As NavigationController)
    NavControl = Nav
    Page1.Initialize("Page1")
    Page1.Title = "Page 1"
    Page1.RootPanel.LoadLayout("1")
    NavControl.ShowPage(Page1)
    For i = 1 To 10
        TableView1.AddSingleLine(i)
    Next
    For i = 21 To 30
        TableView2.AddSingleLine(i)
    Next
End Sub

Try to call Table.ReloadAll if the data doesn't appear.
 
Upvote 0
Top