iOS Question empty iTableView after debug or reload?

Binary01

Member
Licensed User
Hello,

Now I create mylistview with iTableView (iUI8 Version 1.61) as follow:

at Process_Globals
B4X:
Private myList As TableView
at Application_Start
B4X:
    myList .Initialize("myList ", False)
    pnMenu.AddView(myList ,5%x, 10%y ,90%x,80%y)
    CreateMenu(10)
B4X:
Sub CreateMenu(n as Int)
Dim i As Int

myList.Clear
For i = 1 To n
            myList.AddSingleLine("Item #" & i)
 Next
   

End Sub
1. When I add a break point on myList.AddSingleLine("Item #" & i) and
trace and run line by line with Debug, no items are added in myList and show only lines.
(but all Items in myList are shown without trace in Debug run.)

2. When I call CreateMenu(20) from button click module, myList is also empty and show only lines.

How can I fix it?

I do not want CustomListView Library. I want to use this iTableView.

Thanks
 
Last edited:
Top