去掉tabbar上的黑线

- (void)viewDidLoad {
    [super viewDidLoad];
    // 去掉顶部的黑线
    self.tabBar.backgroundImage = [UIImage imageWithColor:[UIColor clearColor]];
    [self.tabBar setShadowImage:[UIImage imageWithColor:[UIColor clearColor] size:CGSizeMake(kScreenWidth, 0.5)]];
原文地址:https://www.cnblogs.com/tufei7/p/10917290.html