刷新/插入UITableView一个cell

来源:互联网 发布:ubuntu etc rc.local 编辑:程序博客网 时间:2024/05/18 16:17

刷新cell

  NSIndexPath *indexPath = [NSIndexPath indexPathForRow:self.indexP inSection:0];

    

   [self.tableView reloadRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationNone];


//插入一个cell

                    NSIndexPath *indexPath = [NSIndexPathindexPathForRow:0inSection:0];

                    

                    [self.tableViewinsertRowsAtIndexPaths:[NSArrayarrayWithObject:indexPath]withRowAnimation:UITableViewRowAnimationNone];


0 1