uitabbarcontroller - Set the background color of UITabBarItem -
Is there an easy way to set the background color of a personalized UITabBarItem?
In my scenario, I would like to use a different image for each of my 2 times of the items, and then I would like to set the background of my 2 times objects in a different background color - each red and green tell.
I'm not setting the background color of the entire tabbar.
You have to set the selected and unselected image.
[self.tabBarItem setFinishedSelectedImage: [UIImage imageNamed: @ "img"] with the fullest image: [UIImage imageNamed: @ "img"]];
Comments
Post a Comment