0

I have a modal view controller, and I want its navigation bar (I think UINavigationItem) to inherit the color of the navigation bar of its presenting view controller. How do I do this?

mlstudent
  • 948
  • 2
  • 15
  • 30

1 Answers1

1

Setup it before presenting modal view controller. For example:

viewController.navigationController.navigationBar.tintColor = self.navigationController.navigationBar.tintColor;
[self presentModalViewController:viewController animated:YES];
ZGl6YXNt
  • 1,814
  • 18
  • 17