问题
When i change detailViewcontroller in splitviewcontroller its navigation bar color changes to Pinkish gray color. Not able to understand why happening this.
Please help...
回答1:
If you customise your navigation bar then your view will disappear into set your main view (parent) view color
-(void)viewWillAppear:(BOOL)animated{
[super viewWillAppear:animated];
//Set Your color of navigation bar.
}
-(void)viewWillDisappear:(BOOL)animated{
[super viewWillDisappear:animated];
//Set your color of main view controller (parent view color).
[[[self navigationController] navigationBar] setTintColor:[UIColor your color]];
}
来源:https://stackoverflow.com/questions/23539913/splitviewcontroller-detailviewcomtrollers-navigationbar-color-changes-to-pink-g