I'm currently trying to make my Swift app compatible with iOS 7. For some reason, I cannot set the Tabbar background as I did it on iOS 8. This is my code:
tabBar.barTintColor = UIColor(patternImage: UIImage(named: "green.png")!)
What am I doing wrong?
self.tabBarController?.tabBar.translucent = false;
from the documentation:
Discussion
This color is made translucent by default unless you set the translucent property to NO.