uitable view自带的动画效果

 NSArray *insertIndexPaths = [NSArray arrayWithObjects:

[NSIndexPath indexPathForRow:indexPath.row+1 inSection:0],

[NSIndexPath indexPathForRow:indexPath.row+2 inSection:0],

[NSIndexPath indexPathForRow:indexPath.row+3 inSection:0],

[NSIndexPath indexPathForRow:indexPath.row+4 inSection:0],

nil];

[regionList insertObject:record atIndex:indexPath.row+1];

[regionList insertObject:record atIndex:indexPath.row+2];

[regionList insertObject:record atIndex:indexPath.row+3];

[regionList insertObject:record atIndex:indexPath.row+4];


[regionListTableView beginUpdates];

[regionListTableView insertRowsAtIndexPaths:insertIndexPaths withRowAnimation: UITableViewRowAnimationTop];

[regionListTableView endUpdates];

原文地址:https://www.cnblogs.com/luyinghuai/p/2007599.html