Accordion table cell - How to dynamically expand/contract uitableviewcell?

Posted by s.newave on Stack Overflow See other posts from Stack Overflow or by s.newave
Published on 2010-06-17T22:37:50Z Indexed on 2010/06/17 22:43 UTC
Read the original article Hit count: 217

Filed under:
|

Hi, I am trying create an accordion type of uitableviewcell that, when the user selects the cell, it expands to display a detailed info view inline similar to how the digg app works. I initially tried replacing the current tablecell with a customcell in cellForRowAtIndex however the animation looks a bit choppy as you can see the cell being replaced and overall the effect doesnt work to well.

If you look at the digg app and others who have done this it seems that they arent replacing the current cell but instead perhaps adding a subview to the cell? The original cell however doesnt seem to animate at all and only the new view accordions into the table.

Does anyone have any ideas how to accomplish a similar effect?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c