Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UITableView cell text is cut off

I am having a problem with the UITableview cell cutting off strings whose characters are more than 12 chars. Any ideas why this would occur? I have not made a custom cell at all. I cannot find any solution to this problem through a Google search. Any ideas?

like image 477
Oh Danny Boy Avatar asked Jun 14 '10 16:06

Oh Danny Boy


1 Answers

You should be able to set the label properties to re-size the font based on the label's contents using adjustsFontSizeToFitWidth. This will essentially decrease the font size to make the text fit all on one line.

like image 200
iwasrobbed Avatar answered Oct 17 '22 09:10

iwasrobbed