I know this was answered, but I have some problem, I'm using this solution: link
The only change is that I'm using this in my viewcontroller so replaced self
with navigationController!
My problem: the navigation bar is black, not transparent. Am I missing something?
I'm using swift with xcode6.1 and deployment target ios 7.1
Thank you in advance!
EDIT: (code as requested)
override func viewDidLoad() {
super.viewDidLoad()
//Transparent navigation bar
navigationController!.navigationBar.translucent = true
navigationController!.navigationBar.shadowImage = UIImage()
navigationController!.navigationBar.setBackgroundImage(UIImage(), forBarMetrics: UIBarMetrics.Default)
/////
//other stuff
}