title: Change color of translucent black UINavigationBar
body: <p>I stumbled upon this many times, never found a solution.
  A UINavigationController's navigationBar can be set to black translucent like:</p>
  
  <pre><code>self.navigationController.navigationBar.barStyle=UIBarStyleBlackTranslucent;
  </code></pre>
  
  <p>Also, there is a translucent property in UINavigationBar, the docs say:</p>
  
  <blockquote>
    <p>When YES, the navigation bar is drawn with partial opacity, regardless
    of the bar style. The amount of opacity is fixed and cannot be
    changed. It is permissible to set the value of this property when the
    navigation bar is being managed by a navigation controller object.</p>
  </blockquote>
  
  <p>I tried</p>
  
  <pre><code>self.navigationcontroller.navigationBar.tintColor=[UIColor blueColor];
  self.navigationcontroller.navigationBar.translucent=YES;
  </code></pre>
  
  <p>and a thousand variations: Setting the translucent property first, setting it in the AppDelegate and in the ViewController, setting the barstyle first.
  The result is always the same: <strong>No transparency.</strong> Hence my question:</p>
  
  <p><strong>Is it really possible to change the color of a translucent UINavigationBar to something different than black</strong> (preferably within a UINavigationController)?.</p>
  
  <p>I hope there is a review-safe solution.</p>
  
  <p>Thanks, m</p>