2019-11-06 tablebar 去掉上面的横线

2019-11-06  本文已影响0人  开创Me世界

对于tablebar 相信大家都不陌生吧,但是对它的一些基本类型的修改及界面上的操作大家都有些无奈,需求和原控件远远的抛弃了,解决简单的tablebar 上面的横线问题

self.tabBar.barStyle = UIBarStyleBlack;

    [UITabBar appearance].translucent = NO;

    [[UITabBar appearance] setBarTintColor:[UIColor whiteColor]];

    self.tabBar.layer.shadowColor = [UIColor lightGrayColor].CGColor;

    self.tabBar.layer.shadowOffset = CGSizeMake(0, -1);

    self.tabBar.layer.shadowOpacity =0.3;

完美修改tablebar 上面的虚线,并且添加阴影

上一篇 下一篇

猜你喜欢

热点阅读