UITableView刷新指定的row或者section

来源:互联网 发布:php zrem 编辑:程序博客网 时间:2024/04/30 10:05

    //刷新指定section

    NSIndexSet *set = [NSIndexSetindexSetWithIndex:0];

    [_tableView reloadSections:set withRowAnimation:UITableViewRowAnimationNone];

    

    //刷新指定row

   NSIndexPath *indexPath_1=[NSIndexPathindexPathForRow:1inSection:0];

   NSArray *indexArray=[NSArrayarrayWithObject:indexPath_1];

    [_tableView reloadRowsAtIndexPaths:indexArray withRowAnimation:UITableViewRowAnimationNone];

0 0
原创粉丝点击