Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
How to make multi-line Tableview cells?
-
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:
-
@victordomingos There two ways to do this:
- You can subclass a
TableView
and overwritecell_for_row
to create aTableViewCell
, add subviews tocell.content_view
and then return the cell. - 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
- You can subclass a