0

I want to give flip animation to UITableViewCell when [tableView reloadData] is called so that it will give a cool animation effect in my app. In between flipping of these cells I will update text of labels.

Can UITableViewCell be flipped one by one. Please help.

user1288005
  • 890
  • 2
  • 16
  • 36

1 Answers1

0

Try write the code to animate the cell.contentView in the cellForRowAtIndexPath:.

  [UIView beginAnimations:@"flip Animation" context:nil];
  [UIView setAnimationDuration:0.5];
  [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft
                       forView: cell.contentView
                         cache:YES];
  [UIView commitAnimations];    

Please add this before you return the cell.

Try this way. Hope this helps you.

Mathew Varghese
  • 4,527
  • 2
  • 17
  • 26
  • That's so incorrect 1) not every displayed cell will be null if the cells are dequeued 2) the cell is obviously not displayed until returned from cellForRowAtIndexPath – A-Live Jul 12 '12 at 05:36