diff options
author | Vitaly Takmazov | 2019-10-02 19:06:38 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2019-10-02 19:06:38 +0300 |
commit | 633abd8498f2ef52d7e2989e111d55012053ad74 (patch) | |
tree | fab65f0d721d0ac47ff49864240061b54b71dd5b /Juick/ViewControllers/DialogsViewController.m | |
parent | bf573afb9d05ce34ecd22b3dca85aca2c3896ae6 (diff) |
Cleanup titles
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]; |