UITabBar images and text titles are being displayed incorrectly in their normal

Originator:anthony.picciano
Number:rdar://23956315 Date Originated:12/18/15
Status:Open Resolved:
Product:tvOS Product Version:9.1
Classification:UI/Usabilty Reproducible:Always
 
Summary:
The UITabBar images and text titles are being displayed incorrectly in their normal (non-selected) state. The text titles are ignoring the UIControlState.Normal foreground color attributes and the images are being displayed as black, despite having the rendering mode set to UIImageRenderingMode.AlwaysOriginal. Both of these techniques worked correctly in tvOS 9.0.x, and both have stopped working in tvOS 9.1.

The relevant pieces of code are:

	self.tabBarItem.image = UIImage(named: "Movies")?.imageWithRenderingMode(.AlwaysOriginal)
        self.tabBarItem.selectedImage = UIImage(named: "MoviesFocused")?.imageWithRenderingMode(.AlwaysOriginal)

And:

	UITabBarItem.appearance().setTitleTextAttributes([NSForegroundColorAttributeName: UIColor.grayColor()], forState: UIControlState.Normal)
        UITabBarItem.appearance().setTitleTextAttributes([NSForegroundColorAttributeName: UIColor.cyanColor()], forState: UIControlState.Selected)

A project archive is attached that demonstrates this issue. We have not been able to implement a method where the UITabBarItems are visible in their .Normal state with the UITabBar background set to black.

Steps to Reproduce:
1. Launch attached app on device running tvOS 9.1


Expected Results:
Expected behavior is that the normal state is grey for the text and the original image for the image.

Actual Results:
Observe normal state of tab bar items is black.

Version:
tvOS 9.1 (13U85)

Notes:
Tab bar displays correctly running on device with tvOS 9.0.x

Configuration:
Apple TV

Attachments:
'TabBarTestApp.zip' was successfully uploaded.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!