title: Set Image Underlay of Transparent Navigation Bar and Status Bar in Swift iOS 8
body: <p>I am new in iOS swift development and I am facing a problem. I want to set transparent navigation bar and make image underlay of transparent navigation bar and status bar like image below,</p>
  
  <p><img src="https://i.stack.imgur.com/35snk.png" alt="enter image description here"></p>
  
  <p>But after I implemented the following code, </p>
  
  <pre><code>self.navigationController!.navigationBar.setBackgroundImage(UIImage(), forBarMetrics: .Default)
  self.navigationController!.navigationBar.shadowImage = UIImage()
  self.navigationController!.navigationBar.translucent = true
  </code></pre>
  
  <p>The result is image still below navigation bar and status bar even though I set the navigation bar to transparent.</p>
  
  <p><img src="https://i.stack.imgur.com/3Hd7R.png" alt="enter image description here"></p>