Changing the background color of Tab Bar

To change background colour of UITabBar TabBarController* Tcontroller =(TabBarController*)self.window.rootViewController; Tcontroller.tabBar.barTintColor=[UIColor yourcolour]; Swift 3 Based on the code above, you can get it by doing this let Tcontroller = self.window.rootViewController as? UITabBarController Tcontroller?.tabBar.barTintColor = UIColor.black // your color or in more general UITabBar.appearance().barTintColor = UIColor.black // your color

Detect when a tab bar item is pressed

You don’t want your view controller’s base class to be a UITabBarDelegate. If you were to do that, all of your view controller subclasses would be tab bar delegates. What I think you want to do is to extend UITabBarController, something like this: class MyTabBarController: UITabBarController, UITabBarControllerDelegate { then, in that class, override viewDidLoad and … Read more

Change UITabBar height

I faced this issue and I was able to solve it. You have to add following code to your subclass of UITabBarController class. const CGFloat kBarHeight = 80; – (void)viewWillLayoutSubviews { [super viewWillLayoutSubviews]; CGRect tabFrame = self.tabBar.frame; //self.TabBar is IBOutlet of your TabBar tabFrame.size.height = kBarHeight; tabFrame.origin.y = self.view.frame.size.height – kBarHeight; self.tabBar.frame = tabFrame; } … Read more

iOS 15 UITabBarController’s tabBar background color turns black

I had the same issue and found the same link that is in your question. I used the same approach for the tab bar. This is the code i am using and it works perfectly. if #available(iOS 15.0, *) { let appearance = UITabBarAppearance() appearance.configureWithOpaqueBackground() appearance.backgroundColor = customColor self.tabController.tabBar.standardAppearance = appearance self.tabController.tabBar.scrollEdgeAppearance = view.standardAppearance }

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)