Re: UITableViewCell with variable height

2013-04-28 Thread Koen van der Drift
On Apr 28, 2013, at 3:28 PM, Ten Horses | Diederik Meijer wrote: > Are you recalculating the size of the label as well? Using the same logic? Good call, that's the solution. Thanks, - Koen. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: UITableViewCell with variable height

2013-04-28 Thread Ten Horses | Diederik Meijer
Are you recalculating the size of the label as well? Using the same logic? I worked on the very same thing yesterday and that got it to work. In my case the label's content can be very large, with string length up to 12 characters and I found out that a label's recalculated size doesn't work

UITableViewCell with variable height

2013-04-28 Thread Koen van der Drift
I'm having some problems to resize and show all text in a UITableViewCell based on the contents. It has two labels, the second of which can have a variable length and I'd like to show it all. So I added this code: - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPa