summaryrefslogtreecommitdiff
path: root/Juick/ViewControllers
diff options
context:
space:
mode:
Diffstat (limited to 'Juick/ViewControllers')
-rw-r--r--Juick/ViewControllers/DiscoverViewController.m6
-rw-r--r--Juick/ViewControllers/ThreadViewController.m6
2 files changed, 12 insertions, 0 deletions
diff --git a/Juick/ViewControllers/DiscoverViewController.m b/Juick/ViewControllers/DiscoverViewController.m
index 4a36cfe..9d7c43b 100644
--- a/Juick/ViewControllers/DiscoverViewController.m
+++ b/Juick/ViewControllers/DiscoverViewController.m
@@ -22,6 +22,12 @@ AppDelegate *appDelegate;
-(void) viewDidLoad {
[super viewDidLoad];
+ [self.navigationController.navigationBar setPrefersLargeTitles:YES];
+ if ([self.path isEqualToString:[APIClient feedUrl]]) {
+ [self setTitle:@"My feed"];
+ } else {
+ [self setTitle:@"Discover"];
+ }
appDelegate = (AppDelegate *) [UIApplication sharedApplication].delegate;
if (appDelegate.pushedThread != nil) {
[self performSegueWithIdentifier:@"threadViewSegue" sender:self];
diff --git a/Juick/ViewControllers/ThreadViewController.m b/Juick/ViewControllers/ThreadViewController.m
index 8cb2cb5..3b6854c 100644
--- a/Juick/ViewControllers/ThreadViewController.m
+++ b/Juick/ViewControllers/ThreadViewController.m
@@ -16,6 +16,12 @@
@implementation ThreadViewController
+
+-(void) viewDidLoad {
+ [super viewDidLoad];
+ [self setTitle:@"Thread"];
+}
+
-(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
NSString * cellIdentifier = @"messageCell";
MessageCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier forIndexPath:indexPath];