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

 

相关文章:

  • 2021-06-30
  • 2022-12-23
  • 2021-05-27
  • 2022-12-23
  • 2021-08-28
  • 1970-01-01
  • 2021-10-26
  • 2021-10-08
猜你喜欢
  • 2022-12-23
  • 2022-02-25
  • 2022-03-04
  • 2022-12-23
  • 2021-08-20
  • 2022-01-02
  • 2022-12-23
相关资源
相似解决方案