在我的AppDelegate中,我使用UIAppearance来设置自己的NavigationBar,代码如下:
[[UINavigationBar appearance] setTintColor:[UIColor blackColor]];
[[UINavigationBar appearance] setBackgroundImage:[UIImage imageNamed:@"nav5.png"] forBarMetrics:UIBarMetricsDefault];
但是我的应用程序某些视图不需要它。我该如何摆脱它,以便在相关视图中仅使用IB?
nil
确实会将样式设置回默认值。已测试。 - Ben ClaytonMFMailComposeViewController
实例上不起作用(请参见https://alpha.app.net/stuffmc/post/5028278) - StuFF mc