2012-03-27 10 views

Odpowiedz

0

Myślę, że nie można manipulować prędkością animacji. Możesz użyć zamiast tego scrollToRowAtIndesPath.

-3

Absolutnie niesprawdzone, ale można spróbować to dla animacji pięciu sekundach:

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

przesłonić insertRowsAtIndexPaths i dodać niestandardową animację, jak chcesz z opóźnieniem.

- (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]; 
} 
}