0

I'm using a UITableView.

There is list of data displayed in the table. I want to animate the cell when a user clicks on it.

How do I do it?

holex
  • 23,961
  • 7
  • 62
  • 76
  • Have you done any research? Show the code you tried and explain what is does wrong. – Wain Jul 14 '14 at 10:31
  • Check the link mentioned below: [Click Here](http://stackoverflow.com/questions/13293131/how-do-i-expand-cell-in-tableview-dynamically) – Ritu Jul 14 '14 at 10:42

1 Answers1

0

Try it. I think it will help you.

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{

  [tableView beginUpdates];
  [tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationTop];
  [tableView endUpdates];

}
Atanu Mondal
  • 1,714
  • 1
  • 24
  • 30