2012-03-27 69 views

回答

0

我認爲不可能操縱動畫速度。

也許你可以用scrollToRowAtIndesPath代替。

-3

絕對未經檢驗的,但你可以嘗試一下本作的五秒鐘的動畫:

[UIView animateWithDuration:5. animations:^(void){ 
    [_tableView insertRowsAtIndexPath:... animated:NO]; 
}]; 
0

覆蓋的insertRowsAtIndexPaths並添加自定義動畫作爲您與延遲喜歡。

- (void)insertRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation: (UITableViewRowAnimation)animation 

{ 

for (NSIndexPath *indexPath in indexPaths) 
{ 
    UITableViewCell *cell = [self cellForRowAtIndexPath:indexPath]; 

    [cell setFrame:CGRectMake(320, cell.frame.origin.y, cell.frame.size.width, cell.frame.size.height)]; 

    [UIView beginAnimations:NULL context:nil]; 
    [UIView setAnimationDuration:1]; 
    [cell setFrame:CGRectMake(0, cell.frame.origin.y, cell.frame.size.width, cell.frame.size.height)]; 
    [UIView commitAnimations]; 
} 
}