iOS全局设置navigation的样式

来源:互联网 发布:windows 10 redstone 编辑:程序博客网 时间:2024/06/05 01:07

在appdelegate全局的设置navaigationbar的样式

- (void)configGlobalUI{    self.window.tintColor = kRGBColor(227, 59, 65, 1.0);    //[UIColor colorWithRed:227/255.0 green:59/255.0 blue:65/255.0 alpha:1.0];    //233 82 84    [[UINavigationBar appearance] setBarTintColor:kRGBColor(233, 82, 84, 1.0)];    [[UINavigationBar appearance] setBarStyle:UIBarStyleBlackOpaque];    [UIBarButtonItem appearance].tintColor = [UIColor whiteColor];    [[UINavigationBar appearance] setTitleTextAttributes:@{NSFontAttributeName: [UIFont systemFontOfSize:20]}];}
0 0