您的位置:首页 > 产品设计 > UI/UE

uitable view自带的动画效果

2011-04-07 10:49 92 查看
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];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: