UITableView刷新某一部分或某一行

xiaoxiao2021-02-28  61

  刷新某一部分或某一行 // 一个 section 刷新 NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex: 2 ]; [tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic]; // 一个 cell 刷新 NSIndexPath *indexPath=[NSIndexPath indexPathForRow: 3 inSection: 0 ]; [tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath, nil ] withRowAnimation:UITableViewRowAnimationNone];
转载请注明原文地址: https://www.6miu.com/read-53203.html

最新回复(0)