Skip to content

Commit

Permalink
Fixed photo detail title color
Browse files Browse the repository at this point in the history
If the navigationBar's color is different than the default, we use it.
  • Loading branch information
davbeck committed Mar 20, 2015
1 parent 5d1ea1d commit 0d09c9e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Pod/Classes/TNKAssetsDetailViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ - (void)viewDidLoad {
self.navigationItem.titleView = _titleView;
}

- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];

_titleLabel.textColor = self.navigationController.navigationBar.titleTextAttributes[NSForegroundColorAttributeName];
_subtitleLabel.textColor = self.navigationController.navigationBar.titleTextAttributes[NSForegroundColorAttributeName];
}

- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];

Expand Down

0 comments on commit 0d09c9e

Please sign in to comment.