iOS Question Converting a listview to a tableview

Sanxion

Active Member
Licensed User
Longtime User
Hi all

I would like to convert a B4a listview to a tableview:

I load the listview using the following:

lvLessons.AddSingleLine("Chapter1")
lvLessons.AddSingleLine("Chapter2")

etc...

I have defined a tableview and initialized it. Do I need to use table cells in order to add the lines?

Thanks
 
All items are made of TableCells however you can ignore this fact and just add the items with:
Code: Copy
tv.AddSingleLine("Chapter1")
This is what I did initially but then couldn't determine how to handle the "click event" of the TableView and what arguments that event would take.

Could you give an example please?
 
Upvote 0
I have found one way of doing it:

Code: Copy
Sub lvLessons_SelectedChanged (SectionIndex As Int, Cell As TableCell)
 
  Dim text As AttributedString = Cell.Text

End Sub
 
Upvote 0

Similar Threads

  • Question Question
iOS Question TableView Usage
Replies
2
Views
759
Replies
26
Views
29K
Replies
38
Views
40K
Back
Top