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

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