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?
Asked
Active
Viewed 228 times
1 Answers
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