ios15 tabbar去掉透明和上面黑线

2年前 (2022) 程序员胖胖胖虎阿
179 0 0

if (@available(iOS 15.0, *)) {

    UITabBarAppearance *tabbarAppearance = [UITabBarAppearance new];
    [tabbarAppearance configureWithDefaultBackground];
    tabbarAppearance.backgroundColor = [UIColor whiteColor];
    tabbarAppearance.shadowColor = [UIColor clearColor];
    tabbarAppearance.backgroundImage = [UIImage new];
    UITabBar.appearance.standardAppearance = tabbarAppearance;
    UITabBar.appearance.scrollEdgeAppearance = tabbarAppearance;
}
版权声明:程序员胖胖胖虎阿 发表于 2022年10月24日 上午2:24。
转载请注明:ios15 tabbar去掉透明和上面黑线 | 胖虎的工具箱-编程导航

相关文章

暂无评论

暂无评论...