diff options
author | Vitaly Takmazov | 2017-12-10 01:24:59 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-12-10 01:24:59 +0300 |
commit | e6a11f68a2aab6c2578529694cf426749f8846ab (patch) | |
tree | cf601e0d124f443b68785ec14b51b85f89373c72 /Juick/ViewControllers | |
parent | a38541e14ecfea8e37c80755fb3b2ef25cd81272 (diff) |
Large titles
Diffstat (limited to 'Juick/ViewControllers')
-rw-r--r-- | Juick/ViewControllers/DiscoverViewController.m | 6 | ||||
-rw-r--r-- | Juick/ViewControllers/ThreadViewController.m | 6 |
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]; |