title: Custom UINavigationController UIToolbar Background Image
body: <p>I have an iPhone application using <code>UINavigationController</code> and would like to customize the elements with custom background images. I was able to do this for the <code>UINavigationController's</code> <code>UINavigationBar</code> pretty easily using Objective-C categories as below:</p>
  
  <p><a href="http://foobarpig.com/iphone/uinavigationbar-with-solid-color-or-image-background.html" rel="noreferrer">http://foobarpig.com/iphone/uinavigationbar-with-solid-color-or-image-background.html</a></p>
  
  <p>I'd like to do the same for the <code>UINavigationController's</code> <code>UIToolbar</code>, but the same approach doesn't seem to work (although I have absolutely no idea why not.) I've looked around and people seem to suggest subclassing <code>UIToolbar</code>, but this isn't possible for the <code>UINavigationController's</code> toolbar, which is a read-only <code>UIToolbar</code>. I want to use the <code>UINavigationController's</code> toolbar instead of just making a subview toolbar because I'm using the slide-in <code>setToolbarHidden</code> animation. </p>
  
  <p>Anyone have any idea if it's possible to apply a background image to this <code>UINavigationController</code> toolbar (most likely by somehow overriding the <code>drawRect</code> method)?</p>