Drawer是展现信息的一种有效方式,然而不同的view需要设置不同的UINavigationController的背景,具体设置方式:


[[nav navigationBar] setBarTintColor:[UIColor colorWithRed:0.019 green:0.705 blue:0.90 alpha:1.0]];


UINavigationController 设置背景
UINavigationController

如果想简单设置,可以使用(https://github.com/aelx311/iOS-Practice/tree/master/BlueJay/BlueJay)中的BLUAppearanceManager,快速设置

#import "BLUAppearanceManager.h"

@implementation BLUAppearanceManager

+ (void)setNavigationBarAppearance

{

[[UINavigationBar appearance]setBarTintColor:kNAVIGATION_BAR_TINT_COLOR];

[[UINavigationBar appearance]setTitleTextAttributes:kNAVIGATION_BAR_TITLE_TEXT_ATTRIBUTES];

}

@end

相关文章:

  • 2022-02-09
  • 2021-11-28
  • 2021-12-30
  • 2022-12-23
  • 2022-12-23
  • 2022-01-04
  • 2022-12-23
猜你喜欢
  • 2021-08-12
  • 2021-11-24
  • 2021-12-06
  • 2021-12-06
  • 2021-11-10
  • 2021-06-13
相关资源
相似解决方案