Reputation: 2958
I don't know why this is happening, I checked it on my storyboard, for my code, I've searched similar questions but didn't find anything.
In my tabBar I have 4 tabs, when I selecting tab #2 tabBars background color gets darken but when I select any other tab it works fine. See the image for better understanding.
tab2 selected (and the background color also get changed
tab3 selected , and now background color gets normal
Upvotes: 1
Views: 695
Reputation: 7444
I think that you are setting tab bar color when presenting 2nd Tab. So remove the background color in the second tab. If you can't still find that try to reset the color when view the tab :-
override func viewWillAppear(animated: Bool) {
self.tabBarController?.tabBar.backgroundColor = UIColor.clearColor()
}
Upvotes: 0