重新绘制、刷新tableView的cell

来源:互联网 发布:amarra windows 编辑:程序博客网 时间:2024/05/19 13:16

重新绘制某行cell

CGRect rectInTableView = [tableView rectForRowAtIndexPath:indexPath];  CGRect rect = [tableView convertRect:rectInTableView toView:[tableView superview]]; 

一个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