diff options
Diffstat (limited to 'Juick/ViewControllers/DialogsViewController.m')
-rw-r--r-- | Juick/ViewControllers/DialogsViewController.m | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Juick/ViewControllers/DialogsViewController.m b/Juick/ViewControllers/DialogsViewController.m index 31a4e8b..0ac22df 100644 --- a/Juick/ViewControllers/DialogsViewController.m +++ b/Juick/ViewControllers/DialogsViewController.m @@ -15,7 +15,6 @@ @implementation DialogsViewController - (void)viewDidLoad { [super viewDidLoad]; - self.navigationController.visibleViewController.title = @"Chats"; [self.view setBackgroundColor:[UIColor colorNamed:@"Background"]]; [self.tableView registerNib:[UINib nibWithNibName:@"ConversationCell" bundle:[NSBundle mainBundle]] forCellReuseIdentifier:@"notificationCell"]; [self refreshData]; @@ -23,6 +22,10 @@ [self.refreshControl addTarget:self action:@selector(refreshData) forControlEvents:UIControlEventValueChanged]; } +- (void)viewWillAppear:(BOOL)animated { + self.navigationController.visibleViewController.title = self.title; +} + - (void) refreshData { self.chats = [NSMutableArray array]; [self.tableView reloadData]; |