我在我的 AppDelegatedidFinishLaunchingWithOptions
方法中添加了这段代码:
[[UINavigationBar appearance]setBackgroundColor:[UIColor colorWithRed:221/256.0 green:36/256.0 blue:40/256.0 alpha:0.0]];
[[UITabBar appearance] setBackgroundColor:[UIColor colorWithRed:221/256.0 green:36/256.0 blue:40/256.0 alpha:0.0]];
但是 NavigationBar 和 TabBar 没有改变它们的颜色。我做错了什么?谢谢