UITableView刷新数据

来源:互联网 发布:php 执行lua脚本 编辑:程序博客网 时间:2024/04/30 00:56

    // 全部数据刷新    [tableView reloadData];        // 局部section刷新    NSIndexSet *reloadIndexSet = [[NSIndexSet alloc] initWithIndex:1];    [tableView reloadSections:reloadIndexSet withRowAnimation:UITableViewRowAnimationAutomatic];        // 局部cell刷新    NSIndexPath *reloadIndexPath = [NSIndexPath indexPathForRow:2 inSection:0];    NSArray *reloadArray = [NSArray arrayWithObjects:reloadIndexPath, nil];    [tableView reloadRowsAtIndexPaths:reloadArray withRowAnimation:UITableViewRowAnimationNone];


0 0
原创粉丝点击