title: Custom loading animation for UITableView
body: <p>I'm trying to create a UITableViewController where the loading animation on the tableview should make the items slide in from the side. The cells have a higher height than default cells, about 5-7x bigger. I would like an animation like the Google+ loading animation, seen on android. (Card animation).</p>
  
  <p>What I imagine would be to subclass the TableView class, override a loading method that displays new items when they are introduced onto the display, and then use a spring animation to simultaneously rotate the cell while its x and y values are gradually changed.</p>
  
  <p>I tried this code in <a href="https://stackoverflow.com/questions/11379614/can-you-do-custom-animations-for-uitableview-cell-inserts">this answer</a> but didn't quite get it to work. Elaboration and explanation on that answer would also be very helpful. Code:</p>
  
  <pre><code>- (void)animate
  {
  [[self.tableView visibleCells] enumerateObjectsUsingBlock:^(UITableViewCell *cell, NSUInteger idx, BOOL *stop) {
      [cell setFrame:CGRectMake(320, cell.frame.origin.y, cell.frame.size.width, cell.frame.size.height)];
      [UIView animateWithDuration:1 animations:^{
          [cell setFrame:CGRectMake(0, cell.frame.origin.y, cell.frame.size.width, cell.frame.size.height)];
      }];
  }];
  }
  </code></pre>
  
  <p>Any help will be much appreciated!
  Erik</p>