How can you keep navigation item title view same for all pushed view controllers?
E.g. I'd like to set title view to a logo that should be visible for all screens.
UIImage *logoImage = [UIImage imageNamed:@"navigation-bar-logo"];
UIImageView *titleLogo = [[UIImageView alloc] initWithImage:logoImage];
self.navigationItem.titleView = titleLogo;
If I set it for each view controller individually, it looks strange with the iOS7 navigation bar animation.
If you want to show a Navigation item title view - same for all pushed view controllers
Below is the example . In appDelegate Class,
In the ViewController ,Set the imageView Frame(optional,You can give your desired) and Image Name(mention the extension if logoImage is giving NULL memory).
Make Rest of the ViewControllers as child of WARootViewControllers
One way to do this is to use UINavigationItem.titleView and UINavigationItem.rightBarButtonItem. Like this :
Here I am using UIImageView as custom view, but it can be UIButton with custom image.
Another way which I suggest you is that without using a viewController
Hopefully this info will helps you. Cheers :)