I am working with a dynamic UITable with prototype cells, which is created in a storyboard in iOS 5. In this table, cell heights depend on the content of the cell and are evaluated programatically in heightForRowAtIndexPath. My issue is that in the table that is displayed cell separator lines are placed at wrong locations. Here are some facts about my program:
- Cells contents and highlights are displayed at intended locations
- In cellForRowAtIndexPath I use dequeueReusableCellWithIdentifier to create new cells
- heightForRowAtIndexPath returns the correct values for all cells
Can anyone please help me figure out this problem? I found a pretty old thread discussing the very same issue a year ago, however no explanations/solutions were suggested (Please see UITableView separators drawn incorrectly through cell reuse?)
Greatly appreciate your help.
Thanks,
Anis