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?
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?
Try it. I think it will help you.
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
[tableView beginUpdates];
[tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationTop];
[tableView endUpdates];
}