title: UINavigationBar Custom Title View
body: <p>I am using iOS 5 <code>UINavigationBar</code>'s <code>UIAppearance</code> protocol in order to customise all my navigation bars.</p>
  
  <p>Here is my customisation function:</p>
  
  <pre><code>- (void)customizeApperance
  {
      [[UINavigationBar appearance] setTintColor:[UIColor clearColor]];
      [[UINavigationBar appearance] setAlpha:0.7];
      UIImageView *titleView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"title.png"]];
      [[UINavigationBar appearance] setTitleView:titleView];
  }
  </code></pre>
  
  <p>I have two problems:</p>
  
  <ul>
  <li><p>The first is that the colour not appearing as <code>clearColor</code> but black. Any suggestions?</p></li>
  <li><p>The title view is not appearing at all. <a href="http://www.raywenderlich.com/4344/user-interface-customization-in-ios-5" rel="nofollow">Ray Wenderlich</a> shows how to do that by adding a: <code>[[rootViewController navigationItem] setTitleView: [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"miniLogo.png"]]]</code> in <code>applicationDidFinishLaunching</code>. But the problem with this is that the title view would only be added in the root view controller. I am using a <code>UINavigationController</code> and when I tired to replace the <code>rootViewController</code> with <code>navigationController</code> (the name of my navigation controller in AppDelegate), I cannot see the title view at all. How can I fix that? Why isn't it working in <code>customizeApperance()</code>? Isn't the whole point of using appearance is to just create a title view once (as I did above the function) and have it global in all navigation bars? How can I achieve that?</p></li>
  </ul>