一个section刷新 一个cell刷新

一个section刷新   一个cell刷新

    //一个section刷新
    NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:2];
    [tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic];
    //一个cell刷新
    NSIndexPath *indexPathA=[NSIndexPath indexPathForRow:0 inSection:0];
    [tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPathA,nil] withRowAnimation:UITableViewRowAnimationNone];
原文地址:https://www.cnblogs.com/GJ-ios/p/6150010.html