I like to have a custom selected image when a user selects an item on the tab bar, by default it selects as blue like but would like to have a green color instead. something
For iOS5 and upwards, you can just do this:
rootTabBarController.tabBar.selectedImageTintColor = [UIColor greenColor];
In AppDelegate.m
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions (NSDictionary *)launchOptions {
[[UITabBar appearance] setSelectedImageTintColor:[UIColor redColor]];
return YES;
}
This will give you a red color, change the color with the one you wish whiteColor, blueColor etc..
When using storyboards you can simply select your TabBarController's TabBar and then change the Image Tint in the Identity Inspector. This should also work with XIBs.
Look here for an image describing the todos