0
[self.tableView beginUpdates];
[self.tableView insertRowsAtIndexPaths:indexPathsToBeInserted withRowAnimation:UITableViewRowAnimationFade];
[self.tableView endUpdates];


- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section {
    if (section == someSection) {
        UIView *footerView = [[UIView alloc] init];
        footerView.backgroundColor = [UIColor someColor];
        return footerView;
    }
    else {
        return nil;
    }
}

- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section {
    if (section == someSection) {
        return 10;
    } 
    else {
        return 0;
    }
}

Nothing really special.
Just provide a footer view and trigger the insert rows method somehow, the footer view will be animated like dropping down every time, you can watch this easier by turning slow animations on in the simulator.

I don't know how to make the animation gone, it's really unwanted.

Benson
  • 248
  • 3
  • 15
  • check out this post http://stackoverflow.com/questions/5740518/uitableview-footer-stop-from-floating-over-content – ctrlc-root May 19 '16 at 02:46

1 Answers1

0

I've found a similar issue here - UITableView section footer view position after endUpdates

The solution is to change table view style to Grouped.

Community
  • 1
  • 1
Benson
  • 248
  • 3
  • 15