summaryrefslogtreecommitdiff
path: root/Juick/ViewControllers/DialogsViewController.m
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-10-02 19:06:38 +0300
committerGravatar Vitaly Takmazov2019-10-02 19:06:38 +0300
commit633abd8498f2ef52d7e2989e111d55012053ad74 (patch)
treefab65f0d721d0ac47ff49864240061b54b71dd5b /Juick/ViewControllers/DialogsViewController.m
parentbf573afb9d05ce34ecd22b3dca85aca2c3896ae6 (diff)
Cleanup titles
Diffstat (limited to 'Juick/ViewControllers/DialogsViewController.m')
-rw-r--r--Juick/ViewControllers/DialogsViewController.m5
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];