I've been trying to find the solution to this for the last week, and I have had no luck after trying every possible solution I could find or think of. Every solution I found and have attempted has either not worked, or been outdated.
I have 5 UITabBarItem
's in a UITabBar
placed within UITabBarController
. I want to change the background color of the UITabBarItem
when it is selected, and of course have it change back when the selected item changes.
I am using Swift, and iOS SDK 8.3 in Xcode 6.3.1. If you can only answer in Objective-C that is fine too, any answer will help! Thank you all in advance, I really appreciate it!
EDIT: Here is a visual example of what I would want it to do.