The images you use for a tab bar item have to have their renderingMode
be, UIImageRenderingModeAlwaysOriginal
or they will appear as blue squares (templates). The document called "Tab Bars", says this,
Tab Bar Item Icons
Each item in a tab bar can have a custom selected image and unselected
image. You can specify these images when you initialize a tab bar item
using the initWithTitle:image:selectedImage: method. Note that a tab
bar item image will be automatically rendered as a template image
within a tab bar, unless you explicitly set its rendering mode to
UIImageRenderingModeAlwaysOriginal. For more information, see Template
Images.
I don't think you can set them up in the storyboard, so you should do it in the controller's init method,
-(id)initWithCoder:(NSCoder *)aDecoder {
if (self = [super initWithCoder:aDecoder]) {
UIImage *img = [UIImage imageNamed:@"pic.jpg"];
img = [img imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
[self.tabBarItem setSelectedImage:img];
}
return self;
}