UITableView cell text disabled

I have a problem with a UITableview cell that disables rows whose characters have more than 12 characters. Any ideas why this will happen? I did not create a custom cell at all. I can’t find a solution to this problem using google search. Any ideas?

+4
source share
2 answers

You should be able to set label properties to change the font size based on the contents of the labels using adjustsFontSizeToFitWidth . This will significantly reduce the font size so that the text fits on one line.

+6
source

Your cell probably contains a label, which in turn is set for the given borders. What you need to do is make sure your label is the same size as the longest line or larger.

+2
source

Source: https://habr.com/ru/post/1312776/


All Articles