关于ios:ios15-tabbar去掉透明和上面黑线

36次阅读

共计 398 个字符,预计需要花费 1 分钟才能阅读完成。

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;
}

正文完
 0