2014-03-04 19 views
1

当我尝试在分割视图中更改导航栏tintcolor时,masterviewcontroller的导航栏颜色正常,但detailviewcontroller导航栏的颜色不正确。这里是我的代码:UINavigationbar tintcolor没有在detailviewcontroller中更改

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

我想通过点击一个按钮,任何一个可以帮助我改变整个在iOS7应用程序的导航栏的颜色?

回答

1

你可以简单地做它用:

yourDetailViewController.navigationBar.barTintColor = [UIColor blueColor];