Forum Archive

How to make multi-line Tableview cells?

victordomingos

I would like to create an interface that presents a table with multi-line cells, with one or more small icons and 2 to 4 text labels inside (each text label with its own formatting style). Is it possible in Pythonista 3?

Something like what you can find in regular iOS apps like this:

MoneyWiz screenshot

bennr01

@victordomingos There two ways to do this:
1. You can subclass a TableView and overwrite cell_for_row to create a TableViewCell, add subviews to cell.content_view and then return the cell.
2. There are some hidden options for a TableViewCell. Take a look at this discussion: https://forum.omz-software.com/topic/941/tableviewcell-detail_text_label/3