What I tried:
UIView *view = [[UIView alloc] initWithFrame:frame];
[view setBackgroundColor:[UIColor redColor]];
[[UINavigationBar appearance] addSubview:view];
[self.navController.view addSubview:view];
[self.navController.view bringSubviewToFront:view];
The question is, how can we properly add subview to our navigation bar in iOS7? Thanks for the consultation.
UPD0: Sorry guys. I got it in part. This happened because I have self.navController.navigationBarHidden = YESafter setupAppearance. Well, it looks like one face with an interesting nav. bar. navigationBarHiddenand in each view we have a custom nav. bar. I have to dive into the details. Anyway, thanks for the answer.
UPD1: just continue the search solution to add a custom view to the navigation. as background image.
source
share