ios15 tabbar去掉透明和上面黑线
文章目录
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;
}
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论