views:

198

answers:

1

I have to fit strings within a table. The strings are of different lengths. The cell of the table should be sized according to string length.

I am using sizeWithFont:constrainedToSize: . But I could not use it properly. Can any one please suggest a solution?

+1  A: 

Use the delegate method tableView:heightForRowAtIndexPath: to change the table view row heights.

gerry3