title: I'm trying to customize a UITabbar using the following code without any luck
body: <p>I'm trying to customize a UITabbar using the following code without any luck:</p>
  
  <p>this is in my viewDidLoad method</p>
  
  <pre><code> UIImage *tabBackground = [[UIImage imageNamed:@"tabbar.png"]
                                resizableImageWithCapInsets:UIEdgeInsetsMake(0, 0, 0, 0)];
      // Set background for all UITabBars
      [[UITabBar appearance] setBackgroundImage:tabBackground];
      // Set background for only this UITabBar
      [[self.tabBarController tabBar] setBackgroundImage:tabBackground];
  </code></pre>
  
  <p>any idea where I might be going wrong here? thanks</p>