Preventing a UITabBar from applying a gradient to its icon images
When I make icons for a UITabBar, it applies a gradient to the images. I need to know how to prevent it from having this gradient. Apple added tab bar customization in iOS 5, and now this kind of stuff is trivial. Prior to this it was a huge hack, and not recommended. Here's how to do a completely custom tab bar: // custom icons UITabBarItem *item = [[UITabBarItem alloc] init]; item.title = @"foo"; // setting custom images prevents the OS from applying a tint color [item setFinishedSelectedImage:[UIImage imageNamed:@"tab1_active.png"] withFinishedUnselectedImage:[UIImage imageNamed:@"tab1