現在、このコードを使用して、ナビゲーション項目の titleView を設定しています。
- (void)viewDidLoad
{ ...
UIImage *navbarTitle = [UIImage imageNamed:@"navbartitleview1"];
UIImageView *imageView = [[UIImageView alloc]initWithImage:navbarTitle];
self.navigationItem.titleView =imageView;
}
UIAppearance を使用してこのコードを配置する方法はありますか?
[UINavigationItem appearance]
有効じゃない。