When one uses a UITableViewRowAnimation
upon deletion of a row or the addition of a row, sometimes if this row is at the extremes of the tableview the table scrolls.
Yet, even though it scrolls it doesn't seem to call scrollViewDidScroll:
on the delegate.
For example, I have the following code in my delegate.
- (void)scrollViewDidScroll:(UIScrollView *)scrollView{
NSLog(@"Scrolling %f", scrollView.contentOffset.y);
}
Which gets called if the user scrolls. But when I have a deletion of a row:
[self.tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationFade];
The scrollViewDidScroll:
method is not called at all.
Is there any way to ensure that this gets called while the UITableView
is animating?
Thanks!