mho000 / MHImageTabBar

UITabBarController Replacement
MIT License
26 stars 12 forks source link

about tabBar #3

Open patikzetrixweb1234 opened 8 years ago

patikzetrixweb1234 commented 8 years ago

How to change tabBar Background Colour when i am tab on a icon? I need this type of tabBar. and how can i add this type of button in meddle ?

03_historical_messages 1

xergic commented 8 years ago

You can change selected tab background color by adding these two lines (with your colors, of course) to didSet method of selectedViewControllerIndex variable:

imageViews[oldValue].backgroundColor = MHImageTabBarConstants.tabBarBackgroundColor imageViews[selectedViewControllerIndex].backgroundColor = UIColor(red:0.13, green:1.00, blue:0.65, alpha:1.00)

Or you can use my fork, until pull request #4 gets merged. Edit: Merged!

The middle button wouldn't be that easy to do. You would need to change init method and its for loop and change third image frame. I guess it could work.

Hope this helps, have a good day 🐼