ios UITableview 刷新某一个cell 或 section

来源:互联网 发布:火狐视频下载php 编辑:程序博客网 时间:2024/06/05 15:24
//一个section刷新    
NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:2];   
[tableview reloadSections:indexSetwithRowAnimation:UITableViewRowAnimationAutomatic];   
//一个cell刷新    
NSIndexPath *indexPath=[NSIndexPath indexPathForRow:3inSection:0];    
[tableView reloadRowsAtIndexPaths:[NSArrayarrayWithObjects:indexPath,nil]withRowAnimation:UITableViewRowAnimationN
one];
0 0
原创粉丝点击