了解一下15新增api
实现
[[UITabBar appearance] setBackgroundImage:[BaseTool imageWithColor:[BaseTool colorWithHexString:@"333333"]]];
if (@available(iOS 15.0, *)) {
UITabBarAppearance *appearance = [[UITabBarAppearance alloc] init];
appearance.backgroundImage = [BaseTool imageWithColor:[BaseTool colorWithHexString:@"333333"]];
[UITabBar appearance].standardAppearance = appearance;
[UITabBar appearance].scrollEdgeAppearance = [UITabBar appearance].standardAppearance;
}