I am aware there are similar answers on this topic, but I cant seem to come to any conclusion. I'm using IOS 8 and a tab bar created in app delegate. Is there a way to set the selected tab bar item to a certain colour. preferably without using an image.
Asked
Active
Viewed 753 times
0

Luke
- 55
- 8
1 Answers
0
[[UITabBar appearance] setTintColor:[UIColor myBlueishColor]];
[[UITabBar appearance] setSelectedImageTintColor:[UIColor myBlueishColor]];
You may find more related information here: http://jslim.net/blog/2014/05/05/ios-customize-uitabbar-appearance/

Hermann Klecker
- 14,039
- 5
- 48
- 71
-
Do you call it before the actual tabbar is displayed? `didFiishLaunchingWithOptions` is a good place. – Hermann Klecker May 18 '16 at 08:17
-
Tried in viewDidLoad. If didFinishLaunchingWithOptions is right place then updating your answer with such information will make it more clear. – Predrag Manojlovic May 18 '16 at 09:15