NSIndexPath *index = [NSIndexPath indexPathForRow:1 inSection:0];
//插入某一行
[self.tableView insertRowsAtIndexPaths:[NSArray arrayWithObject:index] withRowAnimation:
UITableViewRowAnimationNone];
//插入某一分区
[self.tableView insertSections:[NSIndexSet indexSetWithIndex:1] withRowAnimation:UITableViewRowAnimationNone];
//删除某一行
[self.tableView removeRowsAtIndexPaths:[NSArray arrayWithObject:index] withRowAnimation:UITableViewRowAnimationNone];
//删除某一分区
[self.tableView removeSections:[NSIndexSet indexSetWithIndex:1] withRowAnimation:UITableViewRowAnimationNone];
//刷新某一行
[self.tableView reloadRowsAtIndexPaths:[NSArray arrayWithObject:index] withRowAnimation:UITableViewRowAnimationNone];
//刷新某一分区
[self.tableView reloadSections:[NSIndexSet indexSetWithIndex:1] withRowAnimation:UITableViewRowAnimationNone];
//更新某一行
[self.tableView updateRowsAtIndexPaths:[NSArray arrayWithObject:index] withRowAnimation:UITableViewRowAnimationNone];
//更新某一分区
[self.tableView updateSections:[NSIndexSet indexSetWithIndex:1] withRowAnimation:UITableViewRowAnimationNone];
//刷新整个tableview
[self.tableView reloadData];
用户登录
还没有账号?立即注册
用户注册
投稿取消
| 文章分类: |
|
还能输入300字
上传中....
伊布拉希莫尼古拉斯凯奇