iOS TableView刷新某一行

刷新某個section   it

NSIndexSet *indexSet=[[NSIndexSet alloc] initWithIndex:須要刷新的section(NSInteger)];    io

[tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic];    table

//刷新某一行row im

NSIndexPath *indexPath=[NSIndexPath indexPathForRow:2 inSection:1]; //具體的某一行   tab

[tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath,nil] withRowAnimation:UITableViewRowAnimationNonetableview

相關文章
相關標籤/搜索