美文网首页
iOS 开发之UITableView刷新指定的cell或sect

iOS 开发之UITableView刷新指定的cell或sect

作者: 逆枫0 | 来源:发表于2017-12-18 10:16 被阅读42次

    刷新指定的cell

    NSIndexPath *indexPath = [NSIndexPath indexPathForRow:3 inSection:0];

    [tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath,nil] withRowAnimation:UITableViewRowAnimationNone];

    刷新指定的section

    NSIndexSet *indexSet = [[NSIndexSet alloc] initWithIndex:2];

    [tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic];

    相关文章

      网友评论

          本文标题:iOS 开发之UITableView刷新指定的cell或sect

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