Changing tab bar item image and text color iOS

From UITabBarItem class docs: By default, the actual unselected and selected images are automatically created from the alpha values in the source images. To prevent system coloring, provide images with UIImageRenderingModeAlwaysOriginal. The clue is not whether you use UIImageRenderingModeAlwaysOriginal, the important thing is when to use it. To prevent the grey color for unselected items, … Read more

Remove tab bar item text, show only image

You should play with imageInsets property of UITabBarItem. Here is sample code: let tabBarItem = UITabBarItem(title: nil, image: UIImage(named: “more”) tabBarItem.imageInsets = UIEdgeInsets(top: 9, left: 0, bottom: -9, right: 0) Values inside UIEdgeInsets depend on your image size. Here is the result of that code in my app:

Moving UITabBarItem Image down?

Try adjusting tabBarItem‘s imageInsets (for moving the icon image) and setting the controllers title to nil (so no title is displayed). Put something like this to -init or -viewDidLoad method in view controller: Objective-C self.tabBarItem.imageInsets = UIEdgeInsetsMake(6, 0, -6, 0); self.title = nil; Swift self.tabBarItem.imageInsets = UIEdgeInsets(top: 6, left: 0, bottom: -6, right: 0) self.title … Read more

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