scrollToRowAtIndexPath:atScrollPosition causing table view to "jump" : <p>My app has chat functionality and I'm feeding in new messages like this:</p>

<pre><code>[self.tableView beginUpdates];
[messages addObject:msg];
[self.tableView insertRowsAtIndexPaths:@[[NSIndexPath indexPathForRow:messages.count - 1 inSection:1]] withRowAnimation:UITableViewRowAnimationBottom];
[self.tableView endUpdates];
[self.tableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:messages.count - 1 inSection:1] atScrollPosition:UITableViewScrollPositionBottom animated:YES];
</code></pre>

<p>However, my table view "jumps" weirdly when I'm adding a new message (either sending and receiving, result is the same in both):</p>

<p><a href="https://i.stack.imgur.com/3ZcEX.gif"><img src="https://i.stack.imgur.com/3ZcEX.gif" alt="enter image description here"></a></p>

<p>Why am I getting this weird "jump"?</p>
