From f2ad6e8f2bbca27cb9c4777adb581d169c77057b Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 4 Mar 2018 17:24:13 +0300 Subject: layout fixes --- Juick/ViewControllers/DiscoverViewController.m | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Juick/ViewControllers/DiscoverViewController.m') diff --git a/Juick/ViewControllers/DiscoverViewController.m b/Juick/ViewControllers/DiscoverViewController.m index 1b1a0a1..c874c25 100644 --- a/Juick/ViewControllers/DiscoverViewController.m +++ b/Juick/ViewControllers/DiscoverViewController.m @@ -28,7 +28,7 @@ AppDelegate *appDelegate; if (success) { if ([self.path length] == 0) { self.path = [APIClient feedUrl]; - [self setTitle:@"My feed"]; + [self.navigationController.visibleViewController setTitle:@"My feed"]; } [self refreshData:NO]; } else { @@ -39,7 +39,7 @@ AppDelegate *appDelegate; } else { if ([self.path length] == 0) { self.path = [APIClient messagesUrl]; - [self setTitle:@"Discover"]; + [self.navigationController.visibleViewController setTitle:@"Discover"]; } [self refreshData:NO]; } @@ -77,7 +77,7 @@ AppDelegate *appDelegate; UIAlertController *filterAlert = [UIAlertController alertControllerWithTitle:nil message:nil preferredStyle:UIAlertControllerStyleActionSheet]; [filterAlert addAction:[UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleCancel handler:nil]]; [filterAlert addAction:[UIAlertAction actionWithTitle:@"My feed" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) { - [self setTitle:@"My feed"]; + [self.navigationController.visibleViewController setTitle:@"My feed"]; self.path = [APIClient feedUrl]; self.params = nil; [self.messages removeAllObjects]; @@ -85,7 +85,7 @@ AppDelegate *appDelegate; [self refreshData:NO]; }]]; [filterAlert addAction:[UIAlertAction actionWithTitle:@"Discover" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) { - [self setTitle:@"Discover"]; + [self.navigationController.visibleViewController setTitle:@"Discover"]; self.path = [APIClient messagesUrl]; self.params = nil; [self.messages removeAllObjects]; @@ -93,7 +93,7 @@ AppDelegate *appDelegate; [self refreshData:NO]; }]]; [filterAlert addAction:[UIAlertAction actionWithTitle:@"Discussions" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) { - [self setTitle:@"Discussions"]; + [self.navigationController.visibleViewController setTitle:@"Discussions"]; self.path = [APIClient discussionsUrl]; self.params = nil; [self.messages removeAllObjects]; -- cgit v1.2.3