ios UITableview 刷新某一个cell 或 section

来源:互联网 发布:floyd算法结果怎么看 编辑:程序博客网 时间:2024/06/05 11:10

//刷新第一个section的第1行

NSIndexPath *te = [NSIndexPath indexPathForRow:0 inSection:0];

 [tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:te,nilwithRowAnimation:UITableViewRowAnimationAutomatic];


//一个section刷新    
NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:2];    
[tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic];


0 0