在我的 AppDelegate 中,我使用 UIAppearance 使用以下代码设置我自己的 NavigationBar:
[[UINavigationBar appearance] setTintColor:[UIColor blackColor]];
[[UINavigationBar appearance] setBackgroundImage:[UIImage imageNamed:@"nav5.png"] forBarMetrics:UIBarMetricsDefault];
但是我的应用程序的某些视图不需要它。我怎样才能摆脱它,所以我只能在相关视图中使用 IB?