comment avoir une superposition au-dessus d'un élément sélectionné de UITabBar?

quelqu'un sait comment avoir une superposition supplémentaire sur l'élément sélectionné?

le fond est fait dans le délégué de l'application.

UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"navbar_bgrd.png"]]; if ([[[UIDevice currentDevice] systemVersion] floatValue] > 4.9) { //iOS 5 [self.tabBarController.tabBar insertSubview:imageView atIndex:1]; } else { //iOS 4.whatever and below [self.tabBarController.tabBar insertSubview:imageView atIndex:0]; } 

Choisi

entrez la description de l'image ici

non séléctionné

entrez la description de l'image ici

Correction avec IOS 5, fonction UIappearance

  //set the background of tab bar UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"navbar_bgrd.png"]]; if ([[[UIDevice currentDevice] systemVersion] floatValue] > 4.9) { //iOS 5 //[self.tabBarController.tabBar insertSubview:imageView atIndex:1]; [[UITabBar appearance] setBackgroundImage:[UIImage imageNamed:@"navbar_bgrd.png"]]; [[UITabBar appearance] setSelectionIndicatorImage: [UIImage imageNamed:@"navbaractive.png"]]; [[UITabBarItem appearance] setTitleTextAtsortingbutes: [NSDictionary dictionaryWithObjectsAndKeys: [UIColor colorWithRed:75.0/255.0 green:75.0/255.0 blue:75.0/255.0 alpha:1.0], UITextAtsortingbuteTextColor, [UIColor clearColor], UITextAtsortingbuteTextShadowColor, [NSValue valueWithUIOffset:UIOffsetMake(0, 1)], UITextAtsortingbuteTextShadowOffset, nil] forState:UIControlStateNormal]; [[UITabBarItem appearance] setTitleTextAtsortingbutes: [NSDictionary dictionaryWithObjectsAndKeys: [UIColor whiteColor], UITextAtsortingbuteTextColor, [UIColor clearColor], UITextAtsortingbuteTextShadowColor, [NSValue valueWithUIOffset:UIOffsetMake(0, 1)], UITextAtsortingbuteTextShadowOffset, nil] forState:UIControlStateSelected];