The problem is that a very long string is passed to tableVeiw. It does not fit in length on the screen of a cell phone (and therefore not readable).

Can I do something to make IOs automatically increase the cell height so that the line fits into the sequence?

    1 answer 1

    You can specify that the height of the cells is not fixed:

    tableView.rowHeight = UITableViewAutomaticDimension 

    Well, indicate the height of the cells on average:

     tableView.estimatedRowHeight = 44.0 
    • In function viewDidLoad wrote, viewDidAppear wrote, numberOfRowsInSection wrote. Brepointoam works, but there are no changes! Is something wrong? - Igor Zexyy
    • Like did! But the line is never moved down to empty space. How to be? - Igor Zexyy
    • @IgorZexyy to start, what markup in the cell? Have UILabel set the number of rows to 0? - VAndrJ
    • Markup in the cell? I use two functions numberOfRowsInSection and cellForRowAt. I have a call to data from Firebase and I write a long line with them and pass them to an array, which is used to display the tableView. I pass the text to the table via cell.textLabel? .Text = array [indexPath.row] - Igor Zexyy
    • I'm self-taught. Fate on YouTube! There the tables are taught to do this. I can simply not know anything about cell markup ... - Igor Zexyy