UITabBar change background color of one UITabBarItem on iOS7
问题 Can I change the background color of a specific UITabBarItem in a UITabBar ? I know how to change all the background of the selected background, using: [[UITabBar appearance] setBarTintColor:[UIColor redColor]]; [[UITabBar appearance] setTintColor:[UIColor blueColor]]; [[UITabBar appearance] setSelectedImageTintColor:[UIColor yellowColor]]; But can it be done for only one item without subclassing? Thanks 回答1: You can add a subview to the parent tabBar, and set a background color on the