UITableview刷新cell或section iOS

来源:互联网 发布:小学网络安全教育ppt 编辑:程序博客网 时间:2024/06/17 05:58

//刷新 cell  

NSIndexPath *cell=[NSIndexPath indexPathForRow:3 inSection:0];  

[tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:cell,nil] withRowAnimation:UITableViewRowAnimationNone]; 

//刷新 section

NSIndexSet *section=[[NSIndexSet alloc]initWithIndex:2];  

[tableview reloadSections:section withRowAnimation:UITableViewRowAnimationAutomatic];

1 0
原创粉丝点击