I currently use this code to set the titleView of my navigation item:
- (void)viewDidLoad
{ ...
UIImage *navbarTitle = [UIImage imageNamed:@"navbartitleview1"];
UIImageView *imageView = [[UIImageView alloc]initWithImage:navbarTitle];
self.navigationItem.titleView =imageView;
}
Is there a way I could put this code using UIAppearance?
[UINavigationItem appearance]
is not valid.