title: Change duration of UITableView animation (Insert/Delete rows with table beginUpdates)
body: <p>Is there a way to change the duration of <code>[table beginUpdates]</code>/<code>[table endUpdates]</code> animations? </p>
  
  <p>This is what I've tried, with no luck:</p>
  
  <p><strong>Option 1:</strong>
  </p>
  
  <pre><code>[UIView animateWithDuration:5.0 delay:0.0 options:(UIViewAnimationOptionCurveEaseInOut|UIViewAnimationOptionOverrideInheritedDuration) animations:^{
  
       [self.tableView beginUpdates];
  
       [self.tableView deleteRowsAtIndexPaths:[NSArray arrayWithArray:indexPaths] withRowAnimation:UITableViewRowAnimationTop];
  
       [self.tableView endUpdates];
  
  
  } completion:^(BOOL finished) {
  }];
  </code></pre>
  
  <p><strong>Option 2:</strong>
  </p>
  
  <pre><code>[CATransaction begin];
  
  [CATransaction setCompletionBlock:^{
      NSLog(@"I actually get called!");
  }];
  
  [CATransaction setAnimationDuration:5.0]; //but I don't work
  
  [self.tableView beginUpdates];
  
  [self.tableView deleteRowsAtIndexPaths:[NSArray arrayWithArray:indexPaths] withRowAnimation:UITableViewRowAnimationTop];
  
  [self.tableView endUpdates];
  
  [CATransaction commit];
  </code></pre>