I change the background image of the navigation bar when I click on a specific controller. I want to bring this change to life. I can do this with the following code:
[UIView transitionWithView:self.navigationController.navigationBar duration:0.3f options:UIViewAnimationOptionTransitionCrossDissolve animations:^{ [self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@"now-playing-nav-bar.png"] forBarMetrics:UIBarMetricsDefault]; } completion:NULL];
However, this blocks the default push animation applied to navigationBarTitle and UIBarButtonItem s.
How do I get background change and push animation for collaboration?
I would rather have a vanilla solution possible.
PS: I can not use tintColor because the background is textured.
ios objective-c ios6 uinavigationcontroller
duci9y
source share