1

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 not worked.

I have 4 UITabBarItem's in a UITabBar placed within UITabBarController. I want to put individual background color (OR image) of the UITabBarItem. Screen shot is attached enter image description here

I am using Swift, and iOS SDK 9.3 in Xcode 8.0. 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!

Museer Ahamad Ansari
  • 5,414
  • 3
  • 39
  • 45

2 Answers2

3

I hope that -at least- one of the following links to be useful to your case:

  1. Creating a Custom Tab Bar.

  2. Tabbar with custom colors.

  3. iOS Custom UI Series: TabBar & NavBar.

  4. iOS TUTORIAL: Creating a custom tabbar using Storyboard in Xcode.

  5. RXCustomTabBar.

  6. iOS custom tabbar.

  7. How to create custom tab bar in Swift.

Community
  • 1
  • 1
Ahmad F
  • 30,560
  • 17
  • 97
  • 143
0

you can subclass the uitabbarcontroller and in this class in the viewDidLoad function add a views with background colors and imageViews with these icons to this view and make the view userInteractionEnabled = false

sherif.Khaled
  • 294
  • 2
  • 8