Here is my code:
import UIKit
class TabBarViewController: UITabBarController {
override func viewDidLoad() {
super.viewDidLoad()
UITabBar.appearance().barTintColor = UIColor.redColor()
}
}
When I run this it works perfectly on a real device and sets the color correctly, but when the same code is run on the iPhone simulator the tab bar remains white. I am on iOS 9.2, could this be a bug? Or am I writing the code wrong?