When you use UITableViewRowAnimationwhen deleting a row or adding a row, sometimes if this row is at the extreme of the table, the table scrolls.
However, even though it scrolls, it does not seem to call scrollViewDidScroll:for the delegate.
For example, I have the following code in my delegate.
- (void)scrollViewDidScroll:(UIScrollView *)scrollView{
NSLog(@"Scrolling %f", scrollView.contentOffset.y);
}
which is called if the user scrolls. But when I delete the line:
[self.tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationFade];
The method scrollViewDidScroll:is not called at all.
Is there any way to make sure this is caused when the animation UITableView?
Thank!
source
share