Change tab bar item selected color in a storyboard

Deekor picture Deekor · Nov 10, 2014 · Viewed 160.2k times · Source

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

Answer

Mehul Thakkar picture Mehul Thakkar · Apr 16, 2015

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