diff options
Diffstat (limited to 'Juick')
-rw-r--r-- | Juick/ViewControllers/MessagesViewController.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Juick/ViewControllers/MessagesViewController.m b/Juick/ViewControllers/MessagesViewController.m index 536815c..d25f438 100644 --- a/Juick/ViewControllers/MessagesViewController.m +++ b/Juick/ViewControllers/MessagesViewController.m @@ -25,7 +25,6 @@ NSString* const messageCellIdentifier = @"messageCell"; - (void)viewWillAppear:(BOOL)animated { self.navigationController.visibleViewController.title = self.title; - [self refreshData]; } -(void) refreshData { @@ -108,6 +107,7 @@ NSString* const messageCellIdentifier = @"messageCell"; } self.refreshControl = [UIRefreshControl new]; [self.refreshControl addTarget:self action:@selector(refreshData) forControlEvents:UIControlEventValueChanged]; + [self refreshData]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(newMessage:) name:NewMessageNotificationName object:nil]; } |