iosxcodexcode6uitabbaruitabbaritem

Change tab bar item selected color in a storyboard


I want to change my tab bar items to be pink when selected instead of the default blue.

How can i accomplish this using the storyboard editor in Xcode 6?

Here are my current setting which are not working, the blue background works but the pink doesnt work:

enter image description here


Solution

  • Add Runtime Color attribute named "tintColor" from StoryBoard. This is working(for Xcode 8 and above).

    if you want unselected color.. you can add unselectedItemTintColor too.

    setting tintColor as Runtime Attribute