2014-03-04 21 views
1

當我嘗試在分割視圖中更改導航欄tintcolor時,masterviewcontroller的導航欄顏色正常,但detailviewcontroller導航欄的顏色不正確。這裏是我的代碼:UINavigationbar tintcolor沒有在detailviewcontroller中更改

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

我想通過點擊一個按鈕,任何一個可以幫助我改變整個在iOS7應用程序的導航欄的顏色?

回答

1

你可以簡單地做它用:

yourDetailViewController.navigationBar.barTintColor = [UIColor blueColor];