ios uitableview 刷新某一个cell 或 section

来源:互联网 发布:仿淘宝大花朵钩花帽子 编辑:程序博客网 时间:2024/05/22 13:04
//一个section刷新  
NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:2];  
[tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic];  
//一个cell刷新  
NSIndexPath *indexPath=[NSIndexPath indexPathForRow:3 inSection:0];  
[tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath,nil] withRowAnimation:UITableViewRowAnimationNone];
0 0
原创粉丝点击