title: UITabBar appearance setSelectionIndicatorImage does not work on first launch iOS7
body: <p>I have a customised UITabBar and use the following code in the AppDelegate:</p>
  
  <pre><code>- (void)tabBarController:(MainUITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController {
  [self customizeTabBar];
  }
  
  
  - (void)customizeTabBar {
  
      NSLog(@"*******customizeTabBar*******");
      UIImage *tabBackground = [[UIImage imageNamed:@"unselectedtab"]
                    resizableImageWithCapInsets:UIEdgeInsetsMake(0, 0, 0, 0)];
      // Set background for all UITabBars
      [[UITabBar appearance] setBackgroundImage:tabBackground];
      // Set tint color for the images for all tabbars
      [[UITabBar appearance] setSelectedImageTintColor:[UIColor whiteColor]];
      // Set selectionIndicatorImage for all tabbars
      [[UITabBar appearance] setSelectionIndicatorImage:[UIImage imageNamed:@"selectedtab"]];
  
  } 
  
  - (void)tabBarController:(MainUITabBarController *)tabBarController didEndCustomizingViewControllers:(NSArray *)viewControllers changed:(BOOL)changed
  {
      NSLog(@"*******didEndCustomizingViewControllers*******");
  }
  </code></pre>
  
  <p>This is all fine in iOS5+ but in 7 on first load the first TabBarItem the item indicator is white and the button seems to have been selected but the "selectedTab" image is not loaded.</p>
  
  <p>When I press another tab the new tab is red and appears correctly - as does the first or any tab bar item selected after this - it only doesn't work on first launch.</p>
  
  <p>customizeTabBar get called but the selected image does not appear on first launch.</p>
  
  <p>didEndCustomizingViewControllers does not seem to get called at all.</p>
  
  <p>This doesn't work in emulator or device on iOS7 - but does on iOS5, 6.</p>
  
  <p>Any ideas?
  Thanks in advance.</p>