//tabbar横线颜色
if(@available(iOS13.0, *)) {
UITabBarAppearance*standardAppearance = [[UITabBarAppearancealloc]init];
standardAppearance.backgroundColor= [UIColorclearColor];//根据自己的情况设置
standardAppearance.shadowColor= [UIColorclearColor];//也可以设置为白色或任何颜色
self.standardAppearance= standardAppearance;
}
else{
[[UITabBar appearance] setBackgroundImage:[[UIImage alloc]init]];
[[UITabBar appearance] setShadowImage:[[UIImage alloc]init]];
[UITabBar appearance].backgroundColor = [UIColor clearColor];//根据自己的情况设置
}
网友评论