UITableView resizing rows problem

Posted by Vin on Stack Overflow See other posts from Stack Overflow or by Vin
Published on 2010-03-11T17:55:56Z Indexed on 2010/03/11 17:59 UTC
Read the original article Hit count: 455

Filed under:
|

Hi All,

Hope to get solution to this problem. I have been stuck on it since a long time now.

I have a a tableView which has custom labels drawn upon the cell using CGRect. I receive the data from a web service in arrays. Initially i display a line of data on the cells. When the user selects a cell, I call reloadsRowAtIndexPath to increase the height of selected row. In the process, cellForRowAtIndexPath gets called again. I keep track of this by a flag, and when cellForRowAtIndexPath gets called again, I display the two more lines of data from arrays, on the cell.

What i am getting is all overlapping data on one other. I tried to remove already placed labels in didSelectRowAtIndexPath, but to no avail.

Please help me on this

Thanks in advance.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk-3.0