不积跬步,无以至千里;不积小流,无以成江海

Our practice

不积跬步,无以至千里;不积小流,无以成江海

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

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

 

posted on 2011-04-07 10:49  英怀  阅读(362)  评论(0编辑  收藏  举报