UINavigationBar *navBar = [UINavigationBar appearance];
// navBar.tintColor = [UIColor clearColor];
UIView *backgroundView = [self.navigationBar subviews].firstObject;
UIView *lineView = backgroundView.subviews.firstObject;
lineView.hidden = YES;
navBar.barTintColor = [UIColor lm_colorWithHexString:@"ffc400"];
NSDictionary *dict = @{NSForegroundColorAttributeName : [UIColor hexColor:@"#2B2D2E"]};
[navBar setTitleTextAttributes:dict];
navBar.translucent = NO;
[navBar setShadowImage:[[UIColor hexColor:@"#F4F4F4"] colorNavigationImage]];
网友评论