I am using the iOS 5 UI customization features to create a custom tabBar. I know how to place a custom background and selection element like this:
-(void)customizeAppearance { UIImage *tabBg = [UIImage imageNamed:@"myTabBar.png"]; [[UITabBar appearance] setBackgroundImage:navBg]; [[UITabBar appearance] setSelectionIndicatorImage:[UIImage imageNamed:@"mySelector.png"]]; }
I would also like to set the “selected” and “unselected” images for the tabBar icons. From the documentation, I see that you are using
setFinishedSelectedImage: withFinishedUnselectedImage:
to accomplish this. I have 4 tabs and they created 8 icons for them. The question is how to assign each selected / unselected image to each tab?
iphone xcode ios5
awDemo
source share