私のアプリケーションフロー: AViewController -> BViewController -> CViewController
(navigationController経由)。見た目は同じですが、見た目が異なるだけAViewController
です。CViewController
BViewController
私はそれをこのようにしました:
/// AppDelegate (should be 'super' settings)
[[UINavigationBar appearanceWhenContainedIn:[ABCNavigationController class], nil] setBackgroundImage:theImage forBarMetrics:UIBarMetricsDefault];
/// BViewController (should apply ONLY to BViewController)
[self.navigationController.navigationBar setBackgroundImage:BImage forBarMetrics:UIBarMetricsDefault];
問題は、CViewController
ロードした画像がに表示されBViewController
ないことですappDelegate
。appDelegate設定に復元するにはどうすればよいですか?
backgroundImageは、私が設定した多くの要素の1つであることを強調する必要があります。ここでは、例として示しています。