[regression] The selected image of tab bar items is not honored

Originator:kemenaran
Number:rdar://15501621 Date Originated:19-Nov-2013 11:12 AM
Status:Closed Resolved:Resolved
Product:Developer Tools Product Version:iOS 7.1 (11D5099e)
Classification:UI/Usability Reproducible:Always
 
Summary:

The selectedImage of a UITabBarItem is not honored on iOS 7.1 (11D5099e). The standard tab bar item image is applied instead.

Steps to Reproduce:

1. Create a new storyboard
2. In the Storyboard, create a Tab Bar Controller with two child view controllers
3. In the Storyboard, set an image on the TabBar Item of the first child view controller
4. In the first child view controller viewDidLoad method, set the tab bar item selectedImage to another image
5. Launch the app in the Simulator or on the Device

Expected Results:

When switching the selected tab, the selectedImage should be used as the tab bar icon when the tab is selected, and the standard image when the tab is not selected.

Actual Results:

The standard image is used as the tab icon regardless of the tab selection state.

Regression:

This is a regression from iOS 7.0.4.

Notes:

The root issue of all this is that the selected tab bar icon can’t be set from Interface Builder — which force developers to write this in code instead.

A sample project demonstrating the issue can be found here: http://cl.ly/1B0S1b3u1X00 (or in the attached file).

Comments

Fixed in 7.1.2


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!