Closed ongfei closed 2 years ago
解决方案 if (@available(iOS 15.0, )) { UITabBarAppearance appearance = [UITabBarAppearance new]; [appearance configureWithOpaqueBackground]; appearance.backgroundColor = [UIColor redColor]; self.tabBar.standardAppearance = appearance; self.tabBar.scrollEdgeAppearance = appearance; }else { [[UITabBar appearance] setBarTintColor:[UIColor redColor]]; }
Base Info for this issue
1. How to reproduce the problem.
2. Please help me in this way.
3. Here is a Demo.
4. Here is my Debug log