ios 修改导航栏的颜色

UINavigationBar *bar = [UINavigationBar appearance];

    [bar setBarTintColor:[UIColor blueColor]]; // 修改导航栏的颜色为蓝色

    

    [bar setBarStyle:UIBarStyleBlack];

    [bar setTintColor:[UIColor whiteColor]]; // 字体的颜色为白色

    [bar setTranslucent:NO];

1
原文地址:https://www.cnblogs.com/fantasy3588/p/5521274.html