iOS13 UITabBar 去掉多余的横线

// 去掉黑线
    UITabBar *tabBar = [UITabBar appearance];
    [tabBar setBackgroundColor:[UIColor whiteColor]];
    [tabBar setBackgroundImage:[UIImage new]];
    [tabBar setShadowImage:[UIImage new]];
   
    if (@available(iOS 13.0, *)){
        UITabBarAppearance* tabBarAppearance = [[UITabBarAppearance alloc] init];
        tabBarAppearance.shadowColor = [UIColor clearColor];
        [tabBar setStandardAppearance:tabBarAppearance];
    }

你可能感兴趣的:(iOS13 UITabBar 去掉多余的横线)