美文网首页
UITableViewCell刷新

UITableViewCell刷新

作者: 騂跃神话 | 来源:发表于2016-11-14 14:32 被阅读23次

//一个section刷新

 NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:indexPath.section];    
 [tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic];    

//一个cell刷新

NSIndexPath *indexPath=[NSIndexPath indexPathForRow:indexPath.row inSection:indexPath.section];    
[tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath,nil] withRowAnimation:UITableViewRowAnimationNone];

相关文章

网友评论

      本文标题:UITableViewCell刷新

      本文链接:https://www.haomeiwen.com/subject/lgsmdttx.html