Mary
Mary

Reputation: 335

UINavigationbar tintcolor not changed in detailviewcontroller

When i am trying to change the navigation bar tintcolor in split view the masterviewcontroller's navigationbarcolor chenged but detailviewcontroller navigation bar color not chenged. here is my code :

     [[UINavigationBar appearance] setBarTintColor:[UIColor blueColor]];
     [self.navigationController popViewControllerAnimated:YES];

i want to change the navigation bar color throughout the application in iOS7 by clicking on a button can any one help me?

Upvotes: 1

Views: 260

Answers (1)

Tarek Hallak
Tarek Hallak

Reputation: 18470

You can simply do it by:

yourDetailViewController.navigationBar.barTintColor = [UIColor blueColor];

Upvotes: 1

Related Questions