title: Custom UITabBar background image not working in iOS 5 and later
body: <p>I have a simple piece of code that places a background image on the tabBar.</p>
  
  <pre><code>UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"tabBG.png"]];
  [self.tabBarController.tabBar insertSubview:imageView atIndex:0];
  [imageView release];
  </code></pre>
  
  <p>This works fine in iOS 4 but when testing in iOS 5, it doesn't work.</p>
  
  <p>I'm trying to do the following:</p>
  
  <pre><code>UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"tabBG.png"]];
  
  NSString *reqSysVer = @"4.3";
  NSString *iOSVersion = [[UIDevice currentDevice] systemVersion];
  
  if ([iOSVersion compare:reqSysVer options:NSNumericSearch] !=NSOrderedDescending) {
      // code for iOS 4.3 or below
      [self.tabBarController.tabBar insertSubView:imageView atIndex:0];
  }
  else {
      // code for iOS 5
      [self.tabBarController.tabBar insertSubView:imageView atIndex:1];
  }
  
  [imageView release];
  </code></pre>
  
  <p>Alas, this isn't working... Can anyone offer a solution?</p>