aboutsummaryrefslogtreecommitdiffstats
path: root/Classes/ChatViewController.m
diff options
context:
space:
mode:
authorTeddy Wing2012-09-29 18:04:05 -0400
committerTeddy Wing2012-09-29 18:04:05 -0400
commit6ebbf728e84d8dc84d1f9606b9f792ce6d4a9344 (patch)
tree7b9ec1f9793683ae8f8b6c5a773c9acbc684744c /Classes/ChatViewController.m
parentd14fe86d8c411ad41635a4736c2c736027f6b19b (diff)
downloadbabblr-iOS-6ebbf728e84d8dc84d1f9606b9f792ce6d4a9344.tar.bz2
Got message displaying working through web sockets by refreshing the data when it comes in.
Diffstat (limited to 'Classes/ChatViewController.m')
-rw-r--r--Classes/ChatViewController.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Classes/ChatViewController.m b/Classes/ChatViewController.m
index 971363c..5a9f01b 100644
--- a/Classes/ChatViewController.m
+++ b/Classes/ChatViewController.m
@@ -40,7 +40,7 @@
self.view.backgroundColor = [UIColor colorWithRed:219.0f/255.0f green:226.0f/255.0f blue:237.0f/255.0f alpha:1];
chatTableView = [[UITableView alloc] initWithFrame:self.view.bounds style:UITableViewStylePlain];
- dataSource = [[ChatMessagesDataSource alloc] init];
+ dataSource = [[ChatMessagesDataSource alloc] initWithTableView:chatTableView];
[dataSource startMyWebSocket];
[chatTableView setDataSource:dataSource];
[self.view addSubview:chatTableView];