summaryrefslogtreecommitdiff
path: root/Juick/ViewControllers/DiscoverViewController.m
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-03-04 17:24:13 +0300
committerGravatar Vitaly Takmazov2018-03-04 17:24:13 +0300
commitf2ad6e8f2bbca27cb9c4777adb581d169c77057b (patch)
tree7f01a95a038d850010c56537d1efa55cf8c88d40 /Juick/ViewControllers/DiscoverViewController.m
parenta04f0db29cb280eb45888d3a56967cf9adc6214d (diff)
layout fixes
Diffstat (limited to 'Juick/ViewControllers/DiscoverViewController.m')
-rw-r--r--Juick/ViewControllers/DiscoverViewController.m10
1 files changed, 5 insertions, 5 deletions
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];