From d8657bfe0fc50ee524727ee89b477ab094f941e7 Mon Sep 17 00:00:00 2001 From: Yann Diorcet Date: Wed, 26 Sep 2012 12:26:24 +0200 Subject: [PATCH] Fix chat scrolling issue --- Classes/ChatRoomTableViewController.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Classes/ChatRoomTableViewController.m b/Classes/ChatRoomTableViewController.m index e8c119018..038cc7935 100644 --- a/Classes/ChatRoomTableViewController.m +++ b/Classes/ChatRoomTableViewController.m @@ -96,6 +96,8 @@ CGSize size = [self.tableView contentSize]; CGRect bounds = [self.tableView bounds]; bounds.origin.y = size.height - bounds.size.height; + + [self.tableView.layer removeAllAnimations]; [self.tableView scrollRectToVisible:bounds animated:animated]; } @@ -121,6 +123,7 @@ // Scroll to unread if(index >= 0) { + [self.tableView.layer removeAllAnimations]; [self.tableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:index inSection:0] atScrollPosition:UITableViewScrollPositionTop animated:animated];