标签:
[self.tableView reloadData];
// 屏幕上的所有可视的cell都会刷新一遍
NSArray *indexPaths = @[
[NSIndexPath indexPathForRow:0 inSection:0], // 0组0行
[NSIndexPath indexPathForRow:1 inSection:0] // 0组1行
];
[self.tableView insertRowsAtIndexPaths:indexPaths withRowAnimation:UITableViewRowAnimationRight];
NSArray *indexPaths = @[
[NSIndexPath indexPathForRow:0 inSection:0],
[NSIndexPath indexPathForRow:1 inSection:0]
];
[self.tableView deleteRowsAtIndexPaths:indexPaths withRowAnimation:UITableViewRowAnimationMiddle];
NSArray *indexPaths = @[
[NSIndexPath indexPathForRow:0 inSection:0],
[NSIndexPath indexPathForRow:1 inSection:0]
];
[self.tableView relaodRowsAtIndexPaths:indexPaths withRowAnimation:UITableViewRowAnimationMiddle];
标签:
原文地址:http://www.cnblogs.com/LongLJ/p/5001993.html