UITableView刷新指定的section和cell

来源:互联网 发布:51游戏java官网 编辑:程序博客网 时间:2024/05/16 05:17
//一个section刷新    NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:3];    [tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic];    //一个cell刷新    NSIndexPath *indexPath=[NSIndexPath indexPathForRow:2 inSection:1];    [tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath,nil] withRowAnimation:UITableViewRowAnimationNone];  

4 0