How to customize UITableViewCell for string length
I have to fit strings within a table. The strings are of different lengths. The cell of the table should be sized accord开发者_JAVA百科ing to string length.
I am using sizeWithFont:constrainedToSize:
.
But I could not use it properly. Can any one please suggest a solution?
Use the delegate method tableView:heightForRowAtIndexPath: to change the table view row heights.
精彩评论