From 633abd8498f2ef52d7e2989e111d55012053ad74 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 2 Oct 2019 19:06:38 +0300 Subject: Cleanup titles --- Juick/ViewControllers/DialogsViewController.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Juick/ViewControllers/DialogsViewController.m') 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]; -- cgit v1.2.3