隐藏导航栏底部横线和颜色

2018-04-20  本文已影响15人  Luyc_Han
 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]];
上一篇下一篇

猜你喜欢

热点阅读